<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr"><span>You're thinking of OnActivate. OnShow shows only once, after OnCreate. See: </span><a href="http://wiki.lazarus.freepascal.org/Event_order">http://wiki.lazarus.freepascal.org/Event_order</a></div><div dir="ltr"><br></div><div dir="ltr">Bob B.</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Thursday, September 22, 2016 12:17 AM, Mattias Gaertner <nc-gaertnma@netcologne.de> wrote:<br></font></div> <br><br> <div class="y_msg_container">On Thu, 22 Sep 2016 00:54:35 -0600<br clear="none">"Lars" <<a shape="rect" ymailto="mailto:noreply@z505.com" href="mailto:noreply@z505.com">noreply@z505.com</a>> wrote:<br clear="none"><br clear="none">>[...]<br clear="none">> Prefer positive attitude of Yes, vs No. Inbetween Qbit state: maybe.<br clear="none"><br clear="none">I meant 'True'.<br clear="none"><br clear="none"> <br clear="none">> > Keep in mind that the LCL tries to create the Handle and layout after<br clear="none">> > calling FormCreate. So changing properties do not have immediate effects<br clear="none">> > as in the VCL. For example changing Panel1.Align=alTop will move Panel1 to<br clear="none">> > top after FormCreate. <br clear="none">> <br clear="none">> <br clear="none">> Maybe these were some of the issues. What if you had three panels, and you<br clear="none">> set all the alignments up.. then when the form is finally shown it has no<br clear="none">> idea which alignment you wanted done first? Or does it somehow memorize<br clear="none">> which alignments were set first. This could be related to the issue I had<br clear="none">> but cannot remember, for the life of me.<br clear="none"><br clear="none">Maybe this helps:<br clear="none"><a shape="rect" href="http://wiki.lazarus.freepascal.org/Autosize_/_Layout#Order_of_controls_with_same_Align" target="_blank">http://wiki.lazarus.freepascal.org/Autosize_/_Layout#Order_of_controls_with_same_Align</a><div class="yqt0377274045" id="yqtfd12654"><br clear="none"><br clear="none">Mattias<br clear="none">-- <br clear="none">_______________________________________________<br clear="none">Lazarus mailing list<br clear="none"><a shape="rect" ymailto="mailto:Lazarus@lists.lazarus-ide.org" href="mailto:Lazarus@lists.lazarus-ide.org">Lazarus@lists.lazarus-ide.org</a><br clear="none"><a shape="rect" href="http://lists.lazarus-ide.org/listinfo/lazarus" target="_blank">http://lists.lazarus-ide.org/listinfo/lazarus</a><br clear="none"></div><br><br></div> </div> </div> </div></div></body></html>