Keep always on top
조회 수: 66 (최근 30일)
이전 댓글 표시
hi guys
I want to, Keep always on top , guide figure ?
Can you give an example ? or link.
댓글 수: 3
Nasser Hosseini
2022년 2월 16일
How do you do it with a "msgbox", i.e. keep it always on top? It is still a "figure" and not a "uifigure".
When I try to set 'WindowStyle' as 'alwaysontop', I get error:
>> fig_id = msgbox('test');
>> set(fig_id,'WindowStyle','alwaysontop')
Error using matlab.ui.Figure/set
Functionality not supported with figures created with the figure function.
채택된 답변
추가 답변 (4개)
Yoav Livneh
2011년 5월 19일
set(figure_handle,'WindowStyle','modal')
댓글 수: 5
Yoav Livneh
2011년 5월 19일
What I suggested only works within MATLAB. I don't know how to extend it to any window, wait for someone else to answer.
Sorry I couldn't help.
DGM
2022년 2월 22일
Similar to Jan's suggestion, you can always do the window management with ... your window management tools. Jan's recommendation works in Windows. The following works in Linux.
Attached is a simple function that will set the specified window to be on top. This relies on the use of wmctrl, so you need to have that installed. This works for msgbox windows, regular figure windows, and uifigure windows..
hmb = msgbox('test');
hflg = figure(6);
hfui = uifigure(1);
windowontop(hmb)
windowontop(hflg)
windowontop(hfui)
Of course, you can set other window properties the same way.
댓글 수: 4
Jan
2022년 2월 23일
I have no idea, why this is failing, if the demo runs correctly. I've published a new version, which does do no magic tricks anymore to support old Matlab version (HG1, <= R2014b). Now only one C-mex function is compiled. Please try it again with the new version.
Shaul Shvimmer
2020년 3월 17일
Hi, I want to inform whoever incounters this challage using MATLAB's App Designer, there's a great solution written by Igor Varfolomeev, from my experiance it works great in MATLAB 2018b and 2019b:
Cheers, and thank you Igor!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!