Tool strip size

  • Thread starter Thread starter Adam Honek
  • Start date Start date
A

Adam Honek

Hi all,

The tool strip control is set to flow layout, no autosize and to anchor top,
left.

When the form is maximized all the icons and text fit in one line across the
screen.

The menu strip stays with the default height causing there to be a space
from left to right under all icons.

No matter what I try such as autosize on, different layout, different
anchoring it always appears.

My question is how to we get the tool strip to reduce its height if all
icons fit on one line across the screen?

Thanks,
Adam
 
Adam,

As some more controls has the tool strip control its docking set. In this
case it is Top. There is nothing magic in those controls.

What you describe is one of the behaviours of docking.

I hope this helps,

Cor
 
The problem is when it sizes down to only the size necessary it leaves a gap
below it and the panel and split panel control. I need to close this gap to
the
panels top position is the toolbars top + height value.

Adam
 
The menu strip stays with the default height causing there to be a space
from left to right under all icons.

Is the space below the strip the size of an icon?
 
Below...

I ended up doing my own resize code for the controls under the menu strip.

This way them as well as the menu strip scale properly and the latter
doesn't
have a line space beneath all the buttons + icons (PNG's).

The panel and split container made is messy and why scale two controls for
each control if you only need to do one right?

Adam
 
Back
Top