callback difficulties with variation
Afficher commentaires plus anciens
I have an 'edit text' that Ive trying to set with a 'pushbutton' that when pressed down would cause the edit text to increase from 0 in value of 1 per .1 seconds. Ive been thinking it would be under the keypressfcn and keyrelease callbacks?
My best guess has been
%Pushbutton callback
set(handles.edit, 'string', get hObject, 'value')
%edit text callback
set(handles.pushbutton, 'Value', str2num(get(handles.Edit, 'String')));
2 commentaires
Should the text change, when the button is pressed, or "per 0.1 seconds"? You mention an action of a button, so where is the connection to the keys, which are handled in the KeyPressFcn?
Please do not post a question twice. I've delete the duplicate thread.
andrew krugle
le 18 Oct 2018
Modifié(e) : andrew krugle
le 18 Oct 2018
Réponses (0)
Catégories
En savoir plus sur Interactive Control and Callbacks dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
