How can I make my gui larger and scrollable?
조회 수: 10 (최근 30일)
이전 댓글 표시
I am making a large GUI in GUIDE that will be used to control a 32-channel amplifier. I need to have 32 rows each with buttons and popup menus to set the settings.
Right now I only started with 16 rows (channels) just to map it out and get started. It currently takes up almost all the screen (vertically) and I need basically double that space with a scroll bar to see the rest of the channels. I tried the Scroll_Demo.m file and I adapted it into my code and was able to create a scroll bar that works but it won't scroll below my 16th row.
I'm not sure if I'm being perfectly clear but basically I need to double the current size of my gui (i.e make it the size of 2 screens with a scroll bar to see the bottom half).
Any ideas will be greatly appreciated.
-Ian
댓글 수: 0
답변 (1개)
Azzi Abdelmalek
2012년 8월 1일
to resize your figure add this code to your figure_OutputFcn
set(hObject,'Units','pixels','Position',[30 50 1300 670])
% you can change units to inchs or caharcters ...
to use all your buttons, i advise you to create two panel with two button "left" and "right". when you click right, one panel becomes invisible and the second will be visible, and...
set(handles.panel1,'Visible','off'); set(handles.panel2,'Visible','on')
댓글 수: 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!