[Lazarus] Subroutine ?

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Jul 31 07:45:20 CEST 2013


On Tue, 30 Jul 2013 22:53:40 -0500
"Terry A. Haimann" <terry at haimann.us> wrote:

> I am sure this is a dumb ?, but I want a subroutine that will change all
> of the components of a form to Enabled := False.
> 
> How do I do this?

for i:=0 to ControlCount-1 do
  Controls[i].Enabled:=false;

Mattias




More information about the Lazarus mailing list