#224 Enhance ooDialog for function key or hotkeys

v3.2.0
closed
5
2012-08-14
2007-08-22
Anonymous
No

Enhance ooDialog support to provide the ability to detect the entering of a function key or a ctl-, alt-, or shift-key combination. This enhances the functionality of ooDialog and could provide a more user friendly interface. Many software packages provide hotkey support and it would be convenient if ooDialog did the same.

Discussion

  • Mark Miesfeld

    Mark Miesfeld - 2007-08-22

    Logged In: YES
    user_id=191588
    Originator: NO

    I agree that this would be useful in ooDialog. I already have some private code that implements the basics. So, I will work on this, but can not say how quickly it will get committed.

     
  • Mark Miesfeld

    Mark Miesfeld - 2007-09-30

    Logged In: YES
    user_id=191588
    Originator: NO

    Committed revision 849.

    This commit adds the connectHelp method to the base dialog. It allows the user to detect the F1 key and 'connect' the pressing of the F1 key to a method in their dialog class.

    Four args are sent to the connected method.

    1.) The resource ID of the dialog, dialog control, or menu item that has the focus when the F1 key was pressed.

    2.) Whether the ID is for a window (dialog or dialog control) or for a menu item.

    3.) The x position of the mouse at the time of the key press.

    4.) The y position of the mouse at the time of the key press.

     
  • Mark Miesfeld

    Mark Miesfeld - 2007-10-02

    Logged In: YES
    user_id=191588
    Originator: NO

    I have the ability to detect all key presses in ooDialog implemented. A key press is an event, this will be implemented like the other event notification methods in ooDialog. I.e., you will use a connectXXXX method that ties the event to a method you define in your dialog class.

    You can connect the events for a single dialog control (any control) or for the whole dialog. The underlying implementation of these 2 things is completly different, but from an ooDialog user's perspective they will look the same. There will be one method that is a member of the the dialog class and a method that is a member of the dialog control class.

    I just need to get the proper names for the methods and I plan on committing this before the 10/7/2007 cut off date.

     
  • Mark Miesfeld

    Mark Miesfeld - 2007-10-06

    Logged In: YES
    user_id=191588
    Originator: NO

    Committed revision 877.

    This commit allows the user to connect ooDialog methods to key press events, either for the entrie dialog or for individual controls. Key down for individual keys or for multiple keys can be connected to a method and multiple methods can be set up for different keys. I.e., the user could connect function keys F2 through F4 to a method, Alt-f to a method, and F8 through F12 to another.

    A (simplistic) filter can be assigned to refine when the connected method is invoked.

    When the key down event method is inovked, the method receives 5 arguments that allow the user to know the exact key pressed and the state of the shift, control, alt, caps lock, num lock, scroll lock keys at the time of the key press. Any of Micorsoft's defined virtual keys can be connected.

     


Anonymous

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