scrollable property not recognised
6 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Steven Lord
2018-11-20
Looking at the Release Notes it appears that property was added in release R2018b. Which release are you using?
更多回答(2 个)
Caleb Wilkins
2020-2-25
编辑:Caleb Wilkins
2020-2-25
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 个评论
Lucas Shearer
2020-10-29
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?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop uifigure-Based Apps 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!