Matlab GUI non-tag item supported?

1 回表示 (過去 30 日間)
legendbb
legendbb 2013 年 5 月 9 日
Is it possible to use totally static item on GUI for example title text. This field don't have to be an element of handles., doesn't trigger any event.
My handles structure grows so fast when I have a lot of fields. But half of them are title text, only for display purposes.
Thanks,

採用された回答

Sean de Wolski
Sean de Wolski 2013 年 5 月 9 日
You could remove them from handles in the GUI OpeningFcn.
Why is it bad if handles has extra unused fields? These are scalars, even if you have 10000 of them it still doesn't take up a whole lot of extra space. Name the tags of the handles you care about to something meaningful and forget the rest.

その他の回答 (1 件)

David Sanchez
David Sanchez 2013 年 5 月 9 日
If you mean to set a fixed 'String' field on your GUI, the answer to your question is yes, but you will not be able to use either 'set' nor 'get' in your code to modify/read the field.

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by