[Lazarus] Form.ActiveChanged vs Screen ActiveControlChanged
Bart
bartjunk64 at gmail.com
Sun Jan 8 16:56:27 CET 2017
On 1/8/17, José Mejuto via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
> Hello,
>
> In my code I'm overriding "Form.ActiveChanged" to catch when control
> focus changes and perform some global checks, it works fine except when
> focus is changed with mouse.
>
> As a test I've added a handler in Screen.ActiveControlChanged and in
> this case it works with both mouse and keyboard.
>
> Is this behaviour intented ? I'm testing in Windows 7 with SVN fpc and
> Lazarus. I do not know how Delphi works.
In D7 TForm.ActiveChanged is not fired if I change the focus with the
mouse, but it is if I change focus with Tab.
Bart
More information about the Lazarus
mailing list