GUI screen resolution auto-resize
이전 댓글 표시
Is there a way to have a GUI in guide auto-adjust to fit current screen resolution, and/or can I hard-set the resolution of the interface at a specific value?
댓글 수: 1
Trinh Nam
2020년 2월 18일
You can Right Click on Guide (Open Fig file), Left Click to "GUI Options", Choose "Proportional" of Resize behavior
채택된 답변
추가 답변 (1개)
Image Analyst
2016년 6월 29일
0 개 추천
You have to set all the 'units' properties of all the controls to 'normalized'. To do this, type control-a to select everything in the GUI, then set the units property to 'normalized'. This may/will not set the units of controls inside a groupbox panel so you may have to set those separately.
Then, in the OpeningFcn() of your GUI, call the attached MaximizeFigureWindow (if you're using Microsoft Windows) to maximize the window. This truly maximizes it, unlike setting the position property of the GUI. Setting the Position property always seems to leave the window slightly misaligned anyway - bottom left is never at 0,0 like it should be.
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!