ON F12 OF ...

Posted by vancejohnson2 on 21-Jul-2008 12:44

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

All Replies

Posted by GregHiggins on 22-Jul-2008 08:14

Have you tried putting on 'F12':u anywhere ... into your cls file?

Posted by vancejohnson2 on 22-Jul-2008 09:43

Yes, but the trigger never fires.

Posted by Admin on 22-Jul-2008 12:32

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.

Posted by vancejohnson2 on 22-Jul-2008 12:38

I've already done the toolbar trick and it works fine. I'll play around with your other suggestion. Thanks.

This thread is closed