Can I display a text from a textbox into the command window?
Mostrar comentarios más antiguos
Hi,
I have a gui with a textbox that is showing the frames of a movie while is playing. When i press pause, everything pauses. Is there any way to copy or print the 'Current frame' showed in the text box while the movie is in pause??
Respuestas (1)
Jason Whitfield
el 19 de Jul. de 2018
If you have a handle to the textbox, you can access its text through its "String" property. You can get a handle to it with the "findobj" or "findall" functions. For example, if there is only one textbox in the image, you could do the following.
textbox = findall(gcf, 'Type', 'textboxshape');
disp(textbox.String);
1 comentario
Galit Moshkovitz
el 23 de Jul. de 2018
Categorías
Más información sobre Graphics Object Properties en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!