Shortcut Key On Guide
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi all.
I want running the windows interface , shortcut keys.
example:'Ctrl+2' , 'Alt+P' , 'é'
I want to change any property of.
example:the visibility of the check box or Any change UserData for pushbutton,toggle,....
Thank you in advance.
0 Commenti
Risposte (2)
Matt Tearle
il 13 Gen 2012
For the first part, set the KeyPressFcn property of the GUI figure window. Enter docsearch('figure properties') and scroll about a third of the way down, to the end of the section on KeyPressFcn, to see an example of detecting and acting on a ctrl-p action.
I don't really understand the second part. Changing any property is done using set(handle,'PropertyName',value). This can be done in a callback, so it occurs in response to a user action. The figure's KeyPressFcn callback could also call a callback like this, so the action is mirrored in a keyboard shortcut as well as a uicontrol action (like pushing a button).
0 Commenti
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!