How do I disable a pushbutton while GUI is busy?
显示 更早的评论
So, I have created a GUI with a pushbutton.
Since the code takes a little bit to finish, I want to disable the pushbutton while GUI is busy running that piece of code, and when it finishes I want to enable it again.
Is it possible?
Sorry for my bad English!
Thanks!
回答(1 个)
Walter Roberson
2013-3-6
set(HandleOfPushbutton, 'Enable', 'off')
类别
在 帮助中心 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!