Does anyone know how to duplicate the functionality of trapping function keys in CLS files? For example, how to you do capture function key presses like we do in the ABL (ON F12 OF ...). One way to do this is to have a drop-down item off of a toolbar and then set the ShortcutKeys property to F12. Then set the set the click event for that menu item to the desired method.
Message was edited by: Vance
Vance Johnson
Have you tried putting on 'F12':u anywhere ... into your cls file?
Yes, but the trigger never fires.
Well ON F12 would be a trigger for a progress window/form/etc.
This does not work with .NET Controls at all. They need something that translates to a delegate.
You'd probably achieve the best Windows consistent (and easiest to implement) F12 behavior by defining a Shortcut Key for an Infragistics Toolbar Button/Menu Item.
If you want just the F12 key, then try your luck with the KeyDown event of the System.Windows.Forms.Control class. Check for F12 in the e:KeyData property (e:KeyData:ToString() = 'F12'). But I guess you'll need to subscribe that event for any control.
I've already done the toolbar trick and it works fine. I'll play around with your other suggestion. Thanks.