How can I can I trigger the callback of an edit text control when setting its value from within the callback of a slider control?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
In a simple GUI built with GUIDE I have an edit text control and a slider control. The edit text control's callback executes properly when the user changes the control's value using the keyboard.
The purpose of the slider is also to modify the value in the edit text control. The problem I'm running into is the following:
- User moves slider control
- Slider control callback executes and updates the value of the text edit control:
set(handles.tx_ColorTemp, 'String', NewVal);
- Text edit control properly displays new value "NewVal" but its callback does not execute
What am I missing? Thanks for any insight.
Xavier
0 Kommentare
Akzeptierte Antwort
Matt Fig
am 7 Okt. 2012
Bearbeitet: Matt Fig
am 7 Okt. 2012
Editbox callbacks execute when you hit return with the cursor in the text field. You can also just set the string from the slider callback, call DRAWNOW, then call the editbox callback from the slider callback, passing the appropriate args, of course.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!