Info

This question is closed. Reopen it to edit or answer.

build a interface using GUIDE - problem

1 view (last 30 days)
Alexandre
Alexandre on 26 Mar 2013
Closed: MATLAB Answer Bot on 20 Aug 2021
I build a interface using GUIDE of matlab. In this program, I wanted that the string of one push button changed during main callback. I used the command set(handles.cal,'String','XXXX','ForegroundColor',[1 0 0]) at the begin of callback and set(handles.cal,'String','00000','ForegroundColor',[0 0 0]) at the end. The button didn´t change, just when i used breakpoints. What am i doing wrong?
Thanks

Answers (1)

Walter Roberson
Walter Roberson on 26 Mar 2013
drawnow() after the first set()

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!