[lazarus] Win32 accelerator issues
Micha Nelissen
micha at neli.hopto.org
Thu Dec 18 03:40:43 EST 2003
Marc Weustink wrote:
> At 18:06 17-12-2003, Micha Nelissen wrote:
>
>> Hi,
>>
>> Ever noticed the menu 'shortcuts' don't work in the IDE on win32? They
>> work, but only when the main window is focused. The general problem is
>> that a shortcut is register when a certain menu 'command' _globally_,
>> without a corresponding window.
>
>
> Correct, that are menu shortcuts. If you want something global, you
> maybe can use RegisterHotKey.
Well, the problem was they were registered globally, I mean: in a global
FAccelGroup table.
I have fixed the code to registering a table per window...now it works
nicely! Shortcuts work from other windows too. I am unsure however, why
it works now... :S
Regards,
Micha.
More information about the Lazarus
mailing list