Borrar filtros
Borrar filtros

uicontrol selected properties in R2015

2 visualizaciones (últimos 30 días)
Christian D
Christian D el 2 de Feb. de 2017
Comentada: Geoff Hayes el 6 de Feb. de 2017
Hi everybody,
I want that an edit box will be selected automatically once it is created. In the releases early than R2014 it is supposed to be possible. I'm using R2015, so I can't use this property. Is there any possibility to automatically select an uicontrol?
Regards, Christian

Respuestas (1)

Geoff Hayes
Geoff Hayes el 3 de Feb. de 2017
Christian - do you mean that you want to set focus to a specific edit text control? Please see uicontrol and in particular
uicontrol(c)
where c is the handle to a control.
  2 comentarios
Christian D
Christian D el 6 de Feb. de 2017
Hi Geoff,
I'm well aware of the uicontrol and its properties. In earlier releases of MATLAB there was the 'selected' property, to actively select a specific uicontrol. This possibility was removed in later versions. As I'm using MATLAB 2015 this won't work anymore. The question is, is there a workaround?
Geoff Hayes
Geoff Hayes el 6 de Feb. de 2017
Christian - are you saying that you cannot use uincontrol(c) to set focus to a particular control (as per the documentation)? I have been able to do (using R2014a). What happens when you try the above? Or are you trying to do something different than setting focus?

Iniciar sesión para comentar.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by