フィルターのクリア

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

1 回表示 (過去 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 Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by