how to catch when a figure was minimized
21 ビュー (過去 30 日間)
古いコメントを表示
I am writing a to-be standalone for semi-commercial use on a dedicated laptop and want to pervent the user to get to the desktop and into the PC from there. My problem is that I cannot seem to pervent the user from minimizing the main GUI figure. I can block resizing, and I can catch&prevent an effort to close the figure via 'CloseRequestFcn', but I cannot find a trick to catch minimizing. 'SizeChangedFcn' works after the fact only. If there is a way that I could constantly pole for the minimized state and restore it that would be an acceptable workaround.
Yes, I did find Jan Simon's WindowAPI to supersize the figure, but that seems require compilation of C code and I have not done that before Am hoping for alternatives.
Thanks
採用された回答
Steven Lord
2019 年 9 月 12 日
Make the figure window 'fullscreen'?
f = figure('WindowState', 'fullscreen');
3 件のコメント
Steven Lord
2019 年 9 月 12 日
It didn't when I tried it on my Windows machine running release R2019a. I have not tried using a different OS or a different release.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!