Possible bug with WindowState property not updating
Show older comments
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?
Answers (1)
Jorrit M
on 17 Jun 2022
0 votes
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!