How do I implement Scroll-Bars to scroll through my huge GUI in MATLAB 7.6 (R2008a)?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
MathWorks Support Team
am 14 Mai 2018
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Audio and Video Data finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!