<div dir="ltr">Hi Torsten,<div><br></div><div>Every form have an ActiveControl.</div><div>Only the ActiveControl of the ActiveForm get focus.. when the application is active.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-16 13:16 GMT+02:00 Torsten Bonde Christiansen <span dir="ltr"><<a href="mailto:tc@epidata.info" target="_blank">tc@epidata.info</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<font face="monospace">Hi.<br>
<br>
In a single form application, is it always the case that
TForm.ActiveControl = "Focused Control" ?<br>
<br>
Eg. if I somewhere in my coded has:<br>
<br>
...<br>
SomeWinControl.SetFocus;<br>
...<br>
<br>
And the later do a check:<br>
<br>
...<br>
if (MainForm.ActiveControl = SomeWinControl) then<br>
...<br>
<br>
will the above if statement be true (considering focus hasn't
changed)?<br>
<br>
Kind regards,<br>
Torsten.<br>
</font>
</div>
<br>--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Alexandrov Alexandru,<br>tel. 0732-378-682<div>tel. 0743-586-614</div></div>
</div>