Shortcut Key On Guide

3 次查看(过去 30 天)
nsbd
nsbd 2012-1-13
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.

回答(2 个)

Matt Tearle
Matt Tearle 2012-1-13
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).

nsbd
nsbd 2012-1-13
let's say, I wrote a small program guide.
After I left it in the background on Windows.
I want to a shortcut key(example:é).Any change in the program is to be (Making a connection to or , Changing the visible or userdata etc.)
NOTE:But the guide will be in the background. not in the foreground
If you assign me to a link about it is enough.I learn investigates
Thnks.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by