How do I implement Scroll-Bars to scroll through my huge GUI in MATLAB 7.6 (R2008a)?

조회 수: 6 (최근 30일)
I created a huge GUI with GUIDE. To make it more easy to look through the GUI I would like to use Scroll-Bars. Is there a way to do this?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2018년 5월 14일
You can do this by following these steps:
1) GUIDE:
* Create the GUI
2) GUIDE generated MATLAB-Code:
* Shrink the GUI to a good size and adjust the size of the Scrollbar
* Create a list of all objects to be moved
* Save the original positions of the objects in the GUI
3) GUIDE generated MATLAB-Code, Slider-Callback:
* Get the actual position of the Slider
* Add the Y-Value to the Y-Value of the object positions
Please Note the following:
1) Slider
* Units are "characters"
* The "max" value determines the range of scrolling. This value needs to be high enough!
2) Objects:
* Units are "pixels"
Please see the attached files which provide this example!
If you need a Scroll-Bar for the X-Axis this could be done similarly.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

제품


릴리스

R2008a

Community Treasure Hunt

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

Start Hunting!

Translated by