The app creates an scroll bar with changing width using Axes and a rectangular ROI (as the scroll bar) in MATLAB app designer.
The app uses WindowButtonDown function in the figure to find if the scroll bar has been clicked. Then the app changes to WindowButtonMotion function in the figure to track the mouse movement. At the end, the apps use WindowButtonUp in the figure to stop the dragging.
There is a parameter in a the app that control the minimum length of the scroll bar which can be changed in the code.
引用格式
Peyman Mostafaei (2024). Scroll bar for MALTAB App Designer (https://www.mathworks.com/matlabcentral/fileexchange/134117-scroll-bar-for-maltab-app-designer), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2022a
兼容 R2020a 到 R2023b 的版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |