EasyGUI not working for version R2014b

Hi I was using EasyGUI successfully with R2014a. But it stopped working with R2014b. The problem was that the object defined by uipanel no longer has the properties of 'widthlimits' and 'heightlimits'.
obj.UiGuiArea = uipanel('parent' ...
, obj.UiMainContainer, 'units' ...
, 'pixels', 'backgroundcolor' ...
, obj.BackgroundColor, 'tag' ...
, 'autogui-guiarea' );
set(obj.UiGuiArea, 'widthlimits', [1 1], 'heightlimits', [2 inf]);
The error was "There is no widthlimits property on the UIFlowContainer class." What is the physical meaning of 'widthlimits'? would be the alternative for it? Thanks for your help. Hopefully R2014b does not require a major overhaul for EasyGUI, which was handy.

1 件のコメント

M. Welters
M. Welters 2016 年 1 月 6 日
It is such a pity that autogui does not work unter R2014b anymore. Replacing "widthlimits" by "WidthLimits" and "heightlimits" by "HeightLimits" only removes the exceptions. Unfortunately the created GUI controls are invisible. I think this is related to this change:
Dear Mathworks engineers, you should be easily able to provide an autogui revision compatible to R2014b or later, aren't you?

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

 採用された回答

Honglei Chen
Honglei Chen 2014 年 11 月 25 日

1 投票

Maybe you can put a breakpoint there and do
>> set(obj.UiGuiArea)
to see what can be set. It could just be a case sensitive issue, where you may want to use WidthLimits and HeightLimits instead.

2 件のコメント

Enhua Zhou
Enhua Zhou 2014 年 11 月 25 日
It is indeed a case sensitive issue. Problem solved according to your suggestion. Thank you! Enhua
Enhua Zhou
Enhua Zhou 2014 年 11 月 26 日
Honglei, I had trying EasyGUI on 2014b for a few more rounds. I found that it fails quite extensively. Since it will take me a lot of time to debug it, I had decided to switch back to 2014a. Nonetheless, EasyGUI is perhaps due for an upgrade since its release in 2009.

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

その他の回答 (2 件)

M. Welters
M. Welters 2015 年 12 月 11 日

0 投票

It is such a pity that autogui does not work unter R2014b anymore. Replacing "widthlimits" by "WidthLimits" and "heightlimits" by "HeightLimits" only removes the exceptions. Unfortunately the created GUI controls are invisible. I think this is related to this change:
Dear Mathworks engineers, you should be easily able to provide an autogui revision compatible to R2014b or later, aren't you?
M. Welters
M. Welters 2018 年 4 月 6 日

0 投票

It seems that Vadim Frolov fixed EasyGUI to work with ML R2014b+

カテゴリ

ヘルプ センター および File ExchangeResizing and Reshaping Matrices についてさらに検索

タグ

質問済み:

2014 年 11 月 25 日

回答済み:

2018 年 4 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by