How to prevent uitab from printing UserData
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dmitry
am 11 Feb. 2019
Bearbeitet: Kevin Phung
am 11 Feb. 2019
I have run into a problem with uitab displaying the content of the UserData property.
The following code
f=uifigure;
a=uitabgroup(f)
b=uitab(a,'Title','test tab')
b.UserData = 1:3;
yeilds this tab:
![tab.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/203657/tab.png)
The field with numbers is not listed in b.Children() and does not allow placing other GUI elements above it.
Is it a bug or that's how it is supposed to work? In the second case, is there a way to avoid this behaviour?
Thanks
0 Kommentare
Akzeptierte Antwort
Kevin Phung
am 11 Feb. 2019
Bearbeitet: Kevin Phung
am 11 Feb. 2019
Under 'User Data' in the documentation for uitab, it actually states:
Note
Do not use this property in apps you create with App Designer. For information on sharing data within App Designer apps, see Share Data Within App Designer Apps.
so you would store/access the property through:
app.Component.Property
the alternative is to stick with the regular figure instead where you can use the UserData Property
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!