Adabting Ui from 2013 to 2016

2 ビュー (過去 30 日間)
palimer
palimer 2018 年 11 月 13 日
回答済み: Yair Altman 2018 年 11 月 22 日
Hello,
I have a UI that I developed using 2013b and now they changed me to 2016a. The old code that is not working is:
bbfc = uiflowcontainer('v0','parent',self.menuWindowFc, 'FlowDirection','LeftToRight');
set(bbfc, 'heightLimits', [30,30])
However, with the new version of matlab I get the following error:
Error using
matlab.ui.container.internal.UIFlowContainer/set
There is no heightLimits property on the
UIFlowContainer class.
I've been trying to find how to set the maximum heigt for the uiflowcontaner in the new version of matalb unsucessfully. Any idea on how can I do this so I don't have to set specific sizes for each uiflowcontainer that I have (ther are some hundreds).
  1 件のコメント
Rik
Rik 2018 年 11 月 13 日
If you convert the object to a struct, you can dig around in its properties. Maybe the name changed, or this undocumented feature finally broke, that happens sometimes, especially pre-post-HG2.

サインインしてコメントする。

回答 (1 件)

Yair Altman
Yair Altman 2018 年 11 月 22 日
Unfortunately, The HeightLimits and WidthLimits properties were removed from uiflowcontainer at some point in time. This is quite regrettable because these were such useful properties, as I showed here: https://undocumentedmatlab.com/blog/matlab-layout-managers-uicontainer-and-relatives
Instead of uiflowcontainer, try using other layout manageres that are available on the File Exchange, for example GridBagLayout

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

製品


リリース

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by