<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2013/7/31 Hans-Peter Diettrich <span dir="ltr"><<a href="mailto:DrDiettrich1@aol.com" target="_blank">DrDiettrich1@aol.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Frederic Da Vitoria schrieb:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2013/7/31 Hans-Peter Diettrich <<a href="mailto:DrDiettrich1@aol.com" target="_blank">DrDiettrich1@aol.com</a> <mailto:<a href="mailto:DrDiettrich1@aol.com" target="_blank">DrDiettrich1@aol.com</a>>><br>
</blockquote><div class="im">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    Components[] contains the components *owned* by the form, while<br>
    Controls[] contains only the top-level controls, whose *Parent* is<br>
    the form.<br>
<br>
<br>
OK, but since Components can be Controls or not, they could have an Enabled property or not. So shouldn't the loop actually be something like:<br>
<br>
for i := 0 to form.Components.Count - 1 do<br>
    if form.Components[i] is TControl<br>
        then form.Components[i].Enabled := False;<br>
</blockquote></div>
          then TControl(form.Components[i]).Enabled := False;<br></blockquote></div><br></div><div class="gmail_extra">Yes, I saw I missed that one later :-P<br clear="all"></div><div class="gmail_extra"><br>-- <br>Frederic Da Vitoria<br>

(davitof)<br><br>Membre de l'April - « promouvoir et défendre le logiciel libre » - <a href="http://www.april.org" target="_blank">http://www.april.org</a><br>
</div></div>