Possible bug with WindowState property not updating

조회 수: 7 (최근 30일)
Jorrit M
Jorrit M 2022년 6월 7일
답변: Jorrit M 2022년 6월 17일
I'm using Matlab 2019b, where I observed that the windowstate property is not updated when a user clicks the unmaximize button. To recreate:
%create maximized figure
h=figure();
h.WindowState = 'maximized';
=> now click the unmaximize button of the window
%setting focus to the figure will again maximize the window despite giving
%no such command
figure(h);
I have two questions:
1) is there way to track when the unmaximize button is pressed (similar to SizeChangedFcn but only for (un)maximizing a figure?)?
2) can this bug be fixed in a future version?

답변 (1개)

Jorrit M
Jorrit M 2022년 6월 17일
I tested this on R2022a as well, and it's still there. And since no one responded to my question, I submitted it as a bug. Let me know if anyone comes up with a workaround.

카테고리

Help CenterFile Exchange에서 Graphics Objects에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by