Board index » delphi » Bottom aligned StatusBar won't stay under bottom aligned Panel
sparus_nos...@umich.edu (Steve Parus)
![]() Delphi Developer |
Mon, 12 Jul 2004 05:29:29 GMT
Bottom aligned StatusBar won't stay under bottom aligned Panel
I want to have a status bar and a panel aligned to the form's bottom
with the panel located above the status bar. This so they maintain their full width as the form is resized. I also wish to change the height of the panel (in form resize event) so it maintains say 20% of the form's height. What I observe is if the form is resized taller than its current size plus the panel height, then the staus bar location moves above the panel. I've tried various combinations of first setting the alignment to none, making changes and then returning to bottom alignment. If the Panel position is moved by its Top property such that the procedure TForm1.FormResize(Sender: TObject); panel1.align := alnone; panel1.Height := form1.ClientHeight div 5; { position the panle so its bottom is located above the status bar } statusbar1.Align := albottom; panel1.align := albottom; end; |