user interface - How to capture key press in Matlab uipanel -
How can a keyboard entry inside a user capture, ie when there is any focus in the panel? I've found that the uipanel does not have the property key press callback to work, for example, if I try to do it:
set (h_panel, 'keypressfcn', @ (src, event) key_press (obj, src, event)); I get this error:
For a frequency of class 'uicontrol' the name 'kfcfcn' is not an easy asset.
The same thing comes when I try KeyPressed Callback . I am afraid that I would like to follow some kind of hack which includes the original figure, which I want to avoid possible.
I do not see any callback properties that you can use or events that you attach to the listener You can.
& gt; & Gt; Event (H.Panel) Event Matlab.ui.container.Panel for Object: ObjectBoardingDroved LocationChange Changed ButtonDown Reset Property AddedAuthorityPerified Simply mouse event ( buttondown ) and BUTDOWNFACN Callbacks are probably the second trick! Ask the OLAR Altman!
Comments
Post a Comment