set focus to uilistbox

2 次查看(过去 30 天)
Frederic ROBACHE
Frederic ROBACHE 2021-6-7
Hi all,
In AppDesigner, does anyone know how to set the focus to a uilistbox ?
1000 thanks.

回答(1 个)

Abhishek Chakram
Abhishek Chakram 2023-10-11
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

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by