How to make push buttons in GUI that are unable to be pressed until another push button is pressed?
显示 更早的评论
For Example I have 5 push buttons, the last 4 push buttons can't be pressed until the 1st push button is pressed. How can I do this? :\ Gumawo. :)
采纳的回答
更多回答(1 个)
Vishal Rane
2013-8-28
0 个投票
If you are using GUIDE:
When your editing your GUI, double click on the component to get the property inspector. In it, set the 'Enable' property to 'off'. Do this for all the components that you want disabled initially. You can also do this in the create callback function of the components.
Now in the Callback function of the first button, set the Enable property of the remaining four buttons to 'on'.
类别
在 帮助中心 和 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!