how to move a static text box?

I am trying to move a gui static text box progamatically, by pushing a button which performs - "set(handles.text1,'Position',[25 43 23 12]);"
but this doesn't work, the static text box just gets disappeared.
is their any other way to do it?

 Respuesta aceptada

Tom
Tom el 27 de Sept. de 2012

0 votos

Check your units, it's probably gone off the figure
get(handles.text1,'Units')

Más respuestas (1)

Shree Nath
Shree Nath el 27 de Sept. de 2012

0 votos

yeah you were right, it was set to 'charcters'.. thanks ^-^

Categorías

Más información sobre Environment and Settings en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de Sept. de 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by