App property blocks with different attributes

2 views (last 30 days)
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
Matt J
Matt J on 13 Oct 2021
@Mario Malic I'd really prefer
properties (Access = public, Hidden)
but that's not the main issue. The main issue is that appdesigner does not seem to let you modify property attributes of the components.
Mario Malic
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

Sign in to comment.

Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!