TSplitter Persistence problem



I have a form setup with 3 Panels and 2 Splitters as follows:

Panel3
Splitter2
Panel2
Splitter1
Panel1

Everything is alBottom aligned except Panel3 which is aligned
alClient.

At FormClose I save Panel1.Height and Panel2.Height and at
FormCreate I restore these 2 values.

Problem is, if I execute the program and move say Splitter2 up
some then Close the Form and Reopen it, I get the following:

Panel3
Splitter2
Splitter1
Panel2
Panel1

It looks like the controls are maybe loosing their index
locations. Do I need to maybe reindex the controls at the end
of FormCreate and If so how would I do that?

Any help apprecicated.

.



Relevant Pages

  • Re: TSplitter Persistence problem
    ... Everything is alBottom aligned except Panel3 which is aligned ... Merely changing the size of a control won't necessary affect the sizes ... form's aligner do the rest. ... adjust Panel2 and Splitter2 the same way. ...
    (alt.comp.lang.borland-delphi)
  • Reihenfolge von Panels
    ... Panel1 = top ... Panel2 = top ... Panel3 = fill ... Reihenfolge die Eigenschaften setzen funktioniert nicht. ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: Reihenfolge von Panels
    ... Panel1 = top ... Panel2 = top ... Panel3 = fill ... gewünschten Reihenfolge die Eigenschaften setzen funktioniert nicht. ...
    (microsoft.public.de.german.entwickler.dotnet.vb)