[Lazarus] Focused/Active control

Torsten Bonde Christiansen tc at epidata.info
Fri Jan 16 12:16:50 CET 2015


Hi.

In a single form application, is it always the case that 
TForm.ActiveControl = "Focused Control" ?

Eg. if I somewhere in my coded has:

...
SomeWinControl.SetFocus;
...

And the later do a check:

...
if (MainForm.ActiveControl = SomeWinControl) then
...

will the above if statement be true (considering focus hasn't changed)?

Kind regards,
Torsten.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150116/496a614b/attachment-0002.html>


More information about the Lazarus mailing list