PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Elias Montoya on July 07, 2010, 05:58:37 PM

Title: Menu accelerators not responding.
Post by: Elias Montoya on July 07, 2010, 05:58:37 PM

In my compiled program, If i click the menu options they commands work OK, but if i press the keyboard shortcut, nothing happens. For example, "find" is F3. clicking menu command works OK,
but pressing F3 does nothing. The focus is in EDM32. Any ideas why?
Title: Re: Menu accelerators not responding.
Post by: Roger Garstang on July 08, 2010, 11:13:02 AM
Does EDM32 capture the F3 already?  Try another key combo to see if it works.  Usually Alt+keys do other things too, so try something like Ctrl+F and see if it works, then you know it is the control and you will need to process it in there and ignore it or pass it to the form.
Title: Re: Menu accelerators not responding.
Post by: Paul Squires on July 08, 2010, 12:45:42 PM
Is the EDM32 control on a modal or non-modal form?
Title: Re: Menu accelerators not responding.
Post by: Elias Montoya on July 11, 2010, 06:47:55 PM
Roger, No. and yes. other key works. just f3 does not.

Paul, non-modal. I know that opens way for trouble. What should i look for?
Title: Re: Menu accelerators not responding.
Post by: Paul Squires on July 12, 2010, 09:04:33 AM
Quote from: Elias Montoya on July 11, 2010, 06:47:55 PM
just f3 does not.

Are you running a modified version of EDM32? It seems odd that other keys work but F3 does not. Also, did you add any code to FF_PumpHook to filter the F3 key?
Title: Re: Menu accelerators not responding.
Post by: Roger Garstang on July 16, 2010, 04:32:48 PM
Might check for other apps creating some type of global capture too. Screen Capture programs, or maybe some Search Bar since F3 is often used to search.
Title: Re: Menu accelerators not responding.
Post by: Elias Montoya on July 16, 2010, 11:07:29 PM

Paul, that was it, the pumphook had some unnecessary code that was bloking f3. :)

Thanx!

Unfortunately that didnt work for ALT+F... i will see whats going on. By the way,
is there a way to add custom shortcuts? im a bit rusty with menus.