Clear Filters
Clear Filters

scrollable property not recognised

9 views (last 30 days)
There are components used in app designer that are supposed to have a property called Scrollable. When this property is set to 'on' then the uifigure/uitab/uipanel component that has this property should become scrollable when the amount of elements inside this component extend outside the boundaries of the component.
According to this:
that should work with tabs as well create with uitab in appdesigner.
However when I am pasting the same code to test it I always seem to get the following error:
Unrecognized property 'Scrollable' for class 'matlab.ui.container.Tab'.
Any idea why this is? How could I access the scrollable property of a uifigure/uitab? The appdesigner environment does not list it in the properties of either uifigure/uitab when those components are selected...

Accepted Answer

Steven Lord
Steven Lord on 20 Nov 2018
Looking at the Release Notes it appears that property was added in release R2018b. Which release are you using?
  1 Comment
Dimitris
Dimitris on 20 Nov 2018
Hi Steven, thanks for the input. Indeed I am using R2018a.
So this is the reason of not the property not working. Any idea how to accomplish a scrollable panels and figures in the previous releases?
cheers

Sign in to comment.

More Answers (2)

Dimitris
Dimitris on 20 Nov 2018
I still have not managed to make the scrollable property of the components work.
Anyone could possibly direct me to the right direction of solving this?
thanks

Caleb Wilkins
Caleb Wilkins on 25 Feb 2020
Edited: Caleb Wilkins on 25 Feb 2020
Hello,
I am having the same issue with my App Designer GUI. I would very much like to have a scrollable panel if and when I have too many components to display on the panel.
Is there a fix for this? I am now currently using MATLAB (R2018a) Update 6.
My code is simple.
if TotalButtonHeight>PanelHeight
app.PanelName.Scrollable = 'on';
end
Keep in mind that this panel is generated in the app designer methodolgy, not my personal script withing the code. I get the following error.
% Unrecognized property 'Scrollable' for class
% 'matlab.ui.container.Panel'.
I am using a simple if statement to check if the height of my buttons are greater than the panel height. The check is fine, but the property seems to disapear in app designer. Is there potentially a work around if this parameter is discluded in the app designer functionality? If this is the case, why is it removed?
Just tried using a custom made uipanel and the value still does not exist. I cannot find it in the Properties Editor on either "Design View" or "Code View". There are also 2 versions of the uipanel properties that I can find. The 1st has the "Scrollable" parameter, the 2nd does not.
Apparently I have to be using GUIDE. I would like to use App Designer, but maybe this is a loss for me.
Caleb
  3 Comments
Caleb Wilkins
Caleb Wilkins on 26 Feb 2020
Thanks! Sorry for missing that. I will see what I can do.
Lucas Shearer
Lucas Shearer on 29 Oct 2020
I don't see that this property exists in R2018b. Either way, If one were to set the value of that property to 'off', would 2018a be able to run the application?

Sign in to comment.

Categories

Find more on Develop uifigure-Based Apps in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!