Borrar filtros
Borrar filtros

How do I change focus to a given uieditfield (in gui created with uifigure)

1 visualización (últimos 30 días)
I want to change focus to an uieditfield after pushing a button (in gui created with uifigure) to enter some data. - How do I do it?
In gui created with figure it can be done with the simple statement:
uicontrol(EdPtr);
assuming EdPtr is the handle of the uicontrol with the "edit field".
The equivalent statement is not posible for gui made with uifigure!

Respuesta aceptada

Yongjian Feng
Yongjian Feng el 2 de Nov. de 2021
Check this answer?
  1 comentario
Morten Sparre Andersen
Morten Sparre Andersen el 2 de Nov. de 2021
Thank you for pointing me to Adam Danz's suggestion. It works fine in smaller applications. However, it is not convenient having the buttons in between edit fields in the tab order, so I will return to a figure based interface until my next update.
Morten

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by