set focus to uilistbox

Hi all,
In AppDesigner, does anyone know how to set the focus to a uilistbox ?
1000 thanks.

Respuestas (1)

Abhishek Chakram
Abhishek Chakram el 11 de Oct. de 2023

0 votos

Hi Frederic ROBACHE,
It is my understanding that you want to set focus to a “uilistbox” in the App Designer. Here is a sample code for the same:
focus(app.ListBox);
You can refer to the following documentation to know more about the functions used:
Best regards,
Abhishek Chakram

Categorías

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

Productos

Versión

R2021a

Preguntada:

el 7 de Jun. de 2021

Respondida:

el 11 de Oct. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by