Hi, Is there a method I can call to programmatically click a menu item? I'm planning on calling it in the Ctrl+N handler in my accelerator table.
Menus do have onClick handlers that seem to work OK for me, but when I try to execute a click method on a menu item when I know its name, I get an error like this: Can't locate object method "Click" via package "Win32::GUI::MenuItem" ... My Win32::GUI version is 1.05 created 08 Nov 2006 I guess I could call the underlying subs that my menu items call, but I'd rather have the keyboard control the UI, in stead. Its highly useful for push buttons, for instance. As the hotkey pushes the button, the user gets visual feedback and also as a screne reader user, I get notified of the focus and button state change accordingly. is it slightly "unorthodox" to click menus in hotkey handlers like that, in staed of activating the underlying function? As a user I've always disliked the fact that nothing visual happens when I save using the hot key. SO I press alt+f, s in stead, and then the screen reader tells me the file menu opens and closes confirming that something in deed happened. Part of my desire to try the programmatic clicking of menu items, too, would be to give this kind of visual feedback, even when the hotkeys are used. Any help appreciated. I've read through the docs on all menu related controls and browsed through the Notepad example with no luck so far. Most of the menu events have not been documented yet, I guess. My menu is made with the highly useful, undocumented function Win32::GUI::MakeMenu. -- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users http://perl-win32-gui.sourceforge.net/