필터 지우기
필터 지우기

How to display a figure in a borderless fullscreen mode?

조회 수: 12 (최근 30일)
Stanislav Steinberg
Stanislav Steinberg 2016년 8월 22일
답변: Steven Lord 2018년 3월 15일
Hello,
I want to build an experiment similarly to what you'd normally do in E-Prime.
For that, I want a figure window to be displayed completely borderless (no title, no "minimize,maximize,X" buttons etc).
Right now I'm working with WindowAPI but it can only maximize the figure window. I saw other methods online, but all of them simply maximize the window, and don't go fullscreen.
My current code disables the border and maximizes as such:
% create fullscreen figure
iptsetpref('ImshowBorder','tight');
set(0,'DefaultFigureMenu','none');
format compact;
fMain = figure('Color','black');
fMainNum=fMain.Number;
WindowAPI(fMainNum,'maximize');
Please help.

답변 (4개)

Steven Lord
Steven Lord 2018년 3월 15일

Daniel
Daniel 2016년 8월 22일
Whenever I have a question, especially regarding UI, I consult the undocumentedmatlab blog.

Stas Steinberg
Stas Steinberg 2016년 8월 23일
I read all that and all I can do is maximize the figure window.
I can use WindowAPI to do this:
WindowAPI(handle, 'Position', [-1 -1 ScrWidth+1 ScrHeight+1]);
and that will make it "fullscreen" but all my annotations etc disappear from the figure! Which sounds more like a bug with WindowAPI than anything else. In any case, due to this problem, this method is rendered useless for me.
Any more ideas?

Thorsten
Thorsten 2016년 8월 23일
Check out Psychtoolbox 3; it's free. The following demos may also be helpful: http://peterscarfe.com/ptbtutorials.html

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by