フィルターのクリア

app.UIfigure.Visible does not keep the app window on top of all other windows

15 ビュー (過去 30 日間)
farzad
farzad 2020 年 3 月 21 日
コメント済み: Cris LaPierre 2020 年 3 月 24 日
Hi all
using the following line does not really keep the app window in appdesigner on top of all other windows , I have two pushbuttons and for each, the window should remain on top:
app.UIFigure.Visible = 'on';

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 3 月 21 日
編集済み: Cris LaPierre 2020 年 3 月 21 日
Try using drawnow with the figure command in your button callbacks (see this post)
drawnow;
figure(app.UIFigure)
  10 件のコメント
farzad
farzad 2020 年 3 月 24 日
Thank you Cris, but I got an error
Undefined function 'FocusUIFigure' for input arguments of type 'matlab.ui.Figure'.
Error in app120/ChooseDirectoryButtonPushed (line 27)
FocusUIFigure(app.UIFigure)
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 309)
Error while evaluating Button PrivateButtonPushedFcn.
Cris LaPierre
Cris LaPierre 2020 年 3 月 24 日
FocusUIFigure is a custom function that is attached to the post I linked you to. You'll have to download it in order to use it.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by