"There is no ActivePositionProperty property on the Figure class" error

This is the error I get when I run a program I created back in 2011 using Guide. It runs fine in R2012a, but gives this error in R2015b. The error happens in the Guide part of the code that I didn't write:
Error using matlab.ui.Figure/get
There is no ActivePositionProperty property on the Figure class.
Error in movegui (line 119)
oldposmode = get(fig,'ActivePositionProperty');
Error in matlab.hg.internal.openfigLegacy (line 94)
movegui(fig(n), 'onscreen');
Error in gui_mainfcn>local_openfig (line 286)
gui_hFigure = matlab.hg.internal.openfigLegacy(name, singleton, visible);
Error in gui_mainfcn (line 158)
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt, gui_Visible);
Error in eightlinkleg (line 42)
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:})___|;|
What can I do to fix it?

1 件のコメント

Scott
Scott 2016 年 4 月 5 日
Can anyone help me with this? The error occurs in Matlab-supplied code (in movegui) that calls:
oldposmode = get(fig,'ActivePositionProperty');
but ActivePositionProperty is not a property of a figure. Am I missing something obvious here? Was ActivePositionProperty once a property of a figure that got changed to something else? I've scoured the mathworks website for help, to no avail.

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

回答 (2 件)

Joachim Schlosser
Joachim Schlosser 2016 年 4 月 5 日

2 投票

3 件のコメント

Scott
Scott 2016 年 4 月 5 日
Yes, I know it is a property of axes. However, Matlab's own routine 'movegui' uses it as a property of a FIGURE.
Error in movegui (line 119) oldposmode = get(fig,'ActivePositionProperty');
Furthermore, it was a property of a figure back in R2012a, or at least that line of code worked without causing an error.
Thanks for your attempt at solving it, however. Anyone else have a suggestion?
Mike Garrity
Mike Garrity 2016 年 4 月 5 日
But the copy of movegui.m in R2015b doesn't contain that line. Have you got a copy of movegui from an old version on your path?
Scott
Scott 2016 年 4 月 5 日
That's it! I must have made a minor change long ago to the R2012a version of movegui and put it on my path (and subsequently forgot about it). Thanks so much!

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

daniel
daniel 2017 年 10 月 5 日

0 投票

Im having the same issue, my error is :
"Matlab guide error using get there is no AnnotationPane class "
this error occurs when I try to resize the GUI window borders in GUIDE. I am trying to resize my GUI window borders because some buttons have become invisible after I opened and saved the GUI on different matlab installs/computers/monitors.
Any advise is appreciated

1 件のコメント

Walter Roberson
Walter Roberson 2017 年 10 月 5 日
Can you attach your .fig and .m ?
AnnotationPane is matlab.graphics.shape.internal.AnnotationPane

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

カテゴリ

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

製品

質問済み:

2016 年 4 月 4 日

コメント済み:

2017 年 10 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by