App property blocks with different attributes
2 views (last 30 days)
Show older comments
I have an appdesigner app whose properties block looks like this:
properties (Access = public)
guiCanvas matlab.ui.Figure
ImagePanel matlab.ui.container.Panel
text1 matlab.ui.control.Label
EditText_SliceNum matlab.ui.control.EditField
EditText_Level matlab.ui.control.EditField
EditText_Window matlab.ui.control.EditField
text2 matlab.ui.control.Label
text3 matlab.ui.control.Label
Menu_SliceThick matlab.ui.control.DropDown
text4 matlab.ui.control.Label
Slider_SliceNum matlab.ui.control.Slider
Slider_Level matlab.ui.control.Slider
Slider_Window matlab.ui.control.Slider
Button_StreakTrace matlab.ui.control.Button
Button_ExposureDrops matlab.ui.control.Button
Button_RingTrace matlab.ui.control.Button
end
However, I would like to have different control elements, as below, residing in different property blocks with different attributes. I prefer the text components to be invisible properties in app instances generated by the app code. Is there a way to accomplish this?
properties (Access = public, Hidden)
text1 matlab.ui.control.Label
text2 matlab.ui.control.Label
text3 matlab.ui.control.Label
text4 matlab.ui.control.Label
end
properties (Access = public)
guiCanvas matlab.ui.Figure
ImagePanel matlab.ui.container.Panel
EditText_SliceNum matlab.ui.control.EditField
EditText_Level matlab.ui.control.EditField
EditText_Window matlab.ui.control.EditField
Menu_SliceThick matlab.ui.control.DropDown
Slider_SliceNum matlab.ui.control.Slider
Slider_Level matlab.ui.control.Slider
Slider_Window matlab.ui.control.Slider
Button_StreakTrace matlab.ui.control.Button
Button_ExposureDrops matlab.ui.control.Button
Button_RingTrace matlab.ui.control.Button
end
3 Comments
Mario Malic
on 13 Oct 2021
Regarding the previous question, It is not possible to change the property block of the components auto-created by the App Designer as far as I know.
You can modify the component properties with startupFcn
Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!