フィルターのクリア

How can I make my gui larger and scrollable?

10 ビュー (過去 30 日間)
Ian Flaherty
Ian Flaherty 2012 年 7 月 31 日
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

回答 (1 件)

Azzi Abdelmalek
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')

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by