How to get one control in middle to fill but not overlap bottom st

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to have a window where there is a strip on the bottom which stays
fixed height but can stretch left and right, and always anchored to bottom
border. Almost like status bar but it's going to be a plac eI put a bunch of
regular controls. Then I want the main area to have a list view which
stretches in all directions to occupy the rest of the space.

I can get the bottom strip the way I want, by stretching a Panel to fit the
default window size and then anchoring it right, left and bottom

but the main area listview screws everything up. I anchor it top, right and
left and then have it Dock to fill. It is always overlapping by strip on the
bottom.

What's the way around this?
 
Dock-fill will override anchor; either:
* get the borders right, and anchor top/bottom/left/right
or
* create a Panel for the bottom area; dock it bottom; dock the other region
"fill", but make sure the z-order is correct so that they are the right way
around

Marc
 
MrNobody said:
I want to have a window where there is a strip on the bottom which stays
fixed height but can stretch left and right, and always anchored to bottom
border. Almost like status bar but it's going to be a plac eI put a bunch of
regular controls. Then I want the main area to have a list view which
stretches in all directions to occupy the rest of the space.

Just for your information, you can put regular controls in a status bar
too.
I can get the bottom strip the way I want, by stretching a Panel to fit the
default window size and then anchoring it right, left and bottom

As Marc said, set your panel to Dock.Bottom and then the other one to
Dock.Fill.

Chris
 
Back
Top