scrollable property not recognised
7 ビュー (過去 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!