#40 OODialog VirtualKeyCodes Class Alt-Ctrl-Shift Key Combinatio

ooDialog (102)
Jon Wolfers

At the moment, the Virtual Key Code Class does not
distinguish pressing a single key or pressing a key in
combination with ALT (or MENU as it is called), CTRL or

At least this is certainly the case when it is used in
conjunction with the KEYDOWN event of the
ConnectListNotify Method of the MessageExtensions
class. It would be INVALUABLE to be able to distinguish
these key combinations.

At present you get a notification of the pressing of the
(for example) MENU key and then a notification of the
key pressed in combination with it.

I suppose for backwards compatibility one would need an
optional parameter to request these key combinations.


  • Mark Miesfeld

    Mark Miesfeld - 2012-01-21

    Committed revision 7443.

    I added a keyword notification, KEYDOWNEX (Key down extended) that sends as arguments to the event handler all the information known at the time the notification is sent by the list view.

    This does not change the Virtual Key Code class, there is no such thing as a virtual ctrl-C or alt-F key code. Rather when the notification arguments are sent to the Rexx method they include arguments that tell whether the Ctrl, Alt, Shift key are down. So, if the user presses, say Alt-F, you will still see a notifcation when the user presses Alt, (MENU key,) and then a different notification for F, that's the way Windows works. But, when you get the F notification you will have an argument that specifies that the Alt key is down.

    By the way, ooDialog 4.2.0 includes the .VK class as a replacement for the Virtual Key Code class. The .VK class includes every single virtual key in Windows, rather than just some of them.

  • Mark Miesfeld

    Mark Miesfeld - 2012-10-27

    Unfortunately, I never documented this in ooDialog 4.2.0. The documentation is fixed in ooDialog 4.2.1.



Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks