Setting UIFigure windowstyle to modal
17 ビュー (過去 30 日間)
古いコメントを表示
Alejandro Alonso Canales
2020 年 11 月 24 日
コメント済み: Emmanuel Cherin
2022 年 2 月 23 日
Hello i have been looking for a couple of days for answer to this but so far no luck.
But when I try on code:
%------fig--------
try
fig = uifigure;
fig.Name = 'Enter Background Gas Value';
fig.Resize = 'off';
fig.Position(1:2) = [400, 300];
fig.Position(3:4) = [800, 500];
fig.WindowStyle = 'modal';
catch ME
disp(ME)
end
i get this error:
MATLAB:ui:uifigure:UnsupportedAppDesignerFunctionality
Functionality not supported with figures created with the uifigure function. For more information, see Graphics Support in App Designer.
Any idea what i am doing wrong? Thank you
0 件のコメント
採用された回答
Sarvani Panguluri
2020 年 11 月 27 日
編集済み: Sarvani Panguluri
2020 年 11 月 27 日
Hi,
The WindowStyle property is new and has been made available from MATLAB R2020b .So,in case you are using a version prior to that,it would cause error.You can check the Release Notes to know all the new and updated features.
Hope this helps!
2 件のコメント
Emmanuel Cherin
2022 年 2 月 23 日
The WindowStyle property is actually not new. In version of Matlab prior to R2020b, it is accessible for figure objects generated by a call to 'figure', or to GUI figures generated using GUIDE. For figures generated by a call to 'uifigure' or using appdesigner, only some of their properties can be changed (look for " UI Figure (App Designer) Properties" in Matlab help)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Develop uifigure-Based Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!