[Lazarus] Subroutine ?

Chavoux Luyt chavoux at gmail.com
Wed Jul 31 13:09:44 CEST 2013

Hi Mattias

On 31 July 2013 11:00, <lazarus-request at lists.lazarus.freepascal.org> wrote:

> TComponent does not have Enabled. So the above code does not work.
> TControl has Enabled.
> Disabling a control (e.g. no focus, some widgetsets draw them
> gray) automatically disables child controls. So the easiest way
> to disable all controls on a form is to set Form1.Enabled:=false.
> Mattias
> Just a related question on this:
What happens afterwards when I say Form1.Enabled:=true; ?
If some controls were enabled beforehand and some were disabled, will this
be remembered or will I need to enable them one-by-one or will all controls
be enabled by default?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130731/a5dd7e77/attachment-0003.html>

More information about the Lazarus mailing list