LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems on control shortcuts.

Dear sir:
Thank you for your answers! But I still have problems with shortcut keys. I'd setted several shortcut keys to command buttons, then I run the programm. It acted very strang! Clicked letf button of mouse on that button, one event occoured, and that part of programm started. After that the shortcut key for that command button seems work properly.But other shortkeys can't work. If I clicked the mouse left button on other command buttons,all shortcut keys can't work. I must clicked the left mouse button on the controls except command button controls before the next shortcut key can work.
What's wrong with my CVI?
I hope whenever I press the shortcut key, the definite event with that shortcut key would happen. Then
what shall I do?
Please tell me how to use shortcut key!
0 Kudos
Message 1 of 3
(3,170 Views)
Hi MerryMay,
here you will find some hints to help you in your shortcut problems.

1) In a panel, you must put different shortcut keys for the controls, otherwise the behaviour of the interface is somewhat confusing (I hadn't tested it but I can figure that only the first control in the tab order will be triggered its callback)

2) What do you mean by 'that part of program started'? If in 'that part of program' another panel is displayed, the caller one lies in the background and doesn't respond to events like shortcut keys or other keyboard events. It can respond to mouse events because when you click on it it becomes the active panel, and then it can manage mouse or keyboard events

If these hints don't help you in solving your problem, try posting your UIR
file for us to look at it and check.

Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(3,170 Views)
Dear Mr Bozzolo:
Would you please give me your E-mail? I want to send you my UIR file,but I don't know where to send.Thank you very much!
0 Kudos
Message 3 of 3
(3,170 Views)