[Lazarus] Accesing components in FormCreate event

Bob B. parkingspace26 at yahoo.com
Sun Sep 25 01:14:21 CEST 2016


You're thinking of OnActivate.  OnShow shows only once, after OnCreate.  See: http://wiki.lazarus.freepascal.org/Event_order
Bob B. 

    On Thursday, September 22, 2016 12:17 AM, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
 

 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
-- 
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160924/2e46fca3/attachment.html>


More information about the Lazarus mailing list