How to implement modal progress bars and wait bar in MATLAB Simulink
12 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
I've developed a Simulink model where progress bars are displayed on a UI figure within the Simulink environment. While a progress bar is active, users can inadvertently click anywhere within the Simulink interface. However, I want to restrict user interaction with the Simulink interface while a progress bar is active, allowing control only when the progress is completed. How can I implement this restriction effectively?
0 个评论
回答(1 个)
Poorna
2024-5-15
Hi Kunal,
I see you want to implement a modal progress bar. In MATLAB you can create modal ui figures by setting the "WindowStyle" property of the ui figures to "modal". By setting the "WindowStyle" property to "modal" the ui figure will be displayed on top of all other figures and restricts the user from accessing other parts of the application.
To know more about the "WindowStyle" property refer to the "Window Appearance" section in the following documentation:
If you are using "waitbar" function to mimick a progress bar, then you can use the "WindowStyle" of the wait bar to make the bar modal.
Hope this Helps!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!