Using WindowKeyPressFcn with uicontrol
Afficher commentaires plus anciens
From my code
snap = uicontrol(f,'Style','pushbutton','String','Recognize',... 'units','characters',... 'Position',[5 1.5 30 5],'Callback',{@snapshot_callback});
How to push button by using key press from keyboard and if I want to push button by spacebar how to specify it?
Thank you so much :)
2 commentaires
Geoff Hayes
le 16 Août 2014
Ara - what is it exactly that you want to happen? Do you want a pressed key on the keyboard to simulate the pressing of a button on the GUI?
Ara
le 17 Août 2014
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Debugging and Analysis 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!
