From: SourceForge.net <no...@so...> - 2007-10-06 02:18:08
|
Feature Requests item #1779444, was opened at 2007-08-22 07:08 Message generated for change (Comment added) made by miesfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684733&aid=1779444&group_id=119701 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: External Functions >Group: v3.2.0 >Status: Pending Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Mark Miesfeld (miesfeld) Summary: Enhance ooDialog for function key or hotkeys Initial Comment: 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. ---------------------------------------------------------------------- >Comment By: Mark Miesfeld (miesfeld) Date: 2007-10-05 19:18 Message: 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. ---------------------------------------------------------------------- Comment By: Mark Miesfeld (miesfeld) Date: 2007-10-02 07:25 Message: 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. ---------------------------------------------------------------------- Comment By: Mark Miesfeld (miesfeld) Date: 2007-09-30 13:42 Message: 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. ---------------------------------------------------------------------- Comment By: Mark Miesfeld (miesfeld) Date: 2007-08-22 07:56 Message: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684733&aid=1779444&group_id=119701 |