HELLO , I HAVE 4 PUSHBUTTONS IN GUI OF MATLAB. I WANT TO VALIDATE THE BUTTON ON CLICKING THAT MEANS IF BUTTON 1 IS NOT CLICKED WE CANT CLICK BVUTTON 2. IT WILL SHOW THE MESSAGE PLEASE CLICK BUTTON 1 IF WE DIRECTLY CLICK ON BUTTON 2.
1 view (last 30 days)
Show older comments
I HAVE 4 PUSHBUTTONS IN GUI OF MATLAB. I WANT TO VALIDATE THE BUTTON ON CLICKING THAT MEANS IF BUTTON 1 IS NOT CLICKED WE CAN NOT CLICK BVUTTON 2. IT WILL SHOW THE MESSAGE PLEASE CLICK BUTTON 1 IF WE DIRECTLY CLICK ON BUTTON 2.
2 Comments
B.k Sumedha
on 21 Jul 2015
You can use another alternative.In the button1 callback function u can set the visibility true/false for button2.
As soon as the button1 is clicked you can display the button2.
Adam
on 21 Jul 2015
Did you fall asleep on the shift key or could you not be bothered to turn caps lock off?
Answers (0)
See Also
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!