フィルターのクリア

Edit field text does not work after migration from Guide to App designer

4 ビュー (過去 30 日間)
Wolfgang Jacquet
Wolfgang Jacquet 2021 年 4 月 9 日
コメント済み: Wolfgang Jacquet 2021 年 4 月 15 日
I migrated an application from guide to app designer and it seems that the editable text cannot be edited in the migrated application.
If I add a new editable edit field it does not allow to be edited in the running application.

回答 (1 件)

Monisha Nalluru
Monisha Nalluru 2021 年 4 月 14 日
There could be two reasons to edit text component not editable:
  • Check wether the component is Editable and Enabled
  • There is a gap between the uicontrol 'editfield' and the new 'uieditfield'. You could use the 'UserData' property that is available on every component. So if you had this GUIDE code:
set(handles.edit1, 'Value', datenum(get(handles.edit1, 'String')));
This should be converted to
app.edit1.UserData = datenum(app.edit1.Value);
  1 件のコメント
Wolfgang Jacquet
Wolfgang Jacquet 2021 年 4 月 15 日
All text components that need to be editable, Editable is enabled (check box).
I did not make a construction to change the string input into another type such as 'datenum'.
I tested by adding a nuet editable text object into the migrated application
It behaves like the 'migrated editable text fields', impossible to select by clicking for editing.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by