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

조회 수: 4 (최근 30일)
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!

채택된 답변

Yongjian Feng
Yongjian Feng 2021년 11월 2일
Check this answer?
  댓글 수: 1
Morten Sparre Andersen
Morten Sparre Andersen 2021년 11월 2일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by