scrollable property not recognised
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dimitris
el 16 de Nov. de 2018
Comentada: Lucas Shearer
el 29 de Oct. de 2020
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...
0 comentarios
Respuesta aceptada
Steven Lord
el 20 de Nov. de 2018
Looking at the Release Notes it appears that property was added in release R2018b. Which release are you using?
Más respuestas (2)
Caleb Wilkins
el 25 de Feb. de 2020
Editada: Caleb Wilkins
el 25 de Feb. de 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 comentarios
Lucas Shearer
el 29 de Oct. de 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?
Ver también
Categorías
Más información sobre Develop uifigure-Based Apps en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!