[Lazarus] Accesing components in FormCreate event

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Sep 22 09:17:32 CEST 2016


On Thu, 22 Sep 2016 00:54:35 -0600
"Lars" <noreply at z505.com> wrote:

>[...]
> Prefer positive attitude of Yes, vs No. Inbetween Qbit state: maybe.

I meant 'True'.

 
> > Keep in mind that the LCL tries to create the Handle and layout after
> > calling FormCreate. So changing properties do not have immediate effects
> > as in the VCL. For example changing Panel1.Align=alTop will move Panel1 to
> > top after FormCreate.  
> 
> 
> Maybe these were some of the issues. What if you had three panels, and you
> set all the alignments up.. then when the form is finally shown it has no
> idea which alignment you wanted done first?  Or does it somehow memorize
> which alignments were set first.  This could be related to the issue I had
> but cannot remember, for the life of me.

Maybe this helps:
http://wiki.lazarus.freepascal.org/Autosize_/_Layout#Order_of_controls_with_same_Align

Mattias


More information about the Lazarus mailing list