scrollable property not recognised
Mostra commenti meno recenti
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...
Risposta accettata
Più risposte (2)
Dimitris
il 20 Nov 2018
0 voti
Caleb Wilkins
il 25 Feb 2020
Modificato: Caleb Wilkins
il 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 Commenti
Steven Lord
il 25 Feb 2020
As I stated in my answer, it appears that property was added in release R2018b. You're using release R2018a Update 6, which is the release just before it was introduced.
If possible upgrade to release R2018b or later and you should be able to use this property.
Caleb Wilkins
il 26 Feb 2020
Thanks! Sorry for missing that. I will see what I can do.
Lucas Shearer
il 29 Ott 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?
Categorie
Scopri di più su Spreadsheets in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!