Home All Groups Group Topic Archive Search About
Author
12 Apr 2006 12:44 AM
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

Author
12 Apr 2006 6:16 AM
Cor Ligthert [MVP]
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

Show quoteHide quote
"Adam Honek" <AdamHo***@Webmaster2001.freeserve.co.uk> schreef in bericht
news:eN9ktHcXGHA.3560@TK2MSFTNGP04.phx.gbl...
> 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
>
Author
12 Apr 2006 10:54 PM
Adam Honek
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

Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:el4cYhfXGHA.3448@TK2MSFTNGP03.phx.gbl...
> 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
>
> "Adam Honek" <AdamHo***@Webmaster2001.freeserve.co.uk> schreef in bericht
> news:eN9ktHcXGHA.3560@TK2MSFTNGP04.phx.gbl...
>> 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
>>
>
>
Author
13 Apr 2006 2:30 AM
Homer J Simpson
"Adam Honek" <AdamHo***@Webmaster2001.freeserve.co.uk> wrote in message
news:eN9ktHcXGHA.3560@TK2MSFTNGP04.phx.gbl...

> 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?
Author
13 Apr 2006 1:21 PM
Adam Honek
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

"Homer J Simpson" <nob***@nowhere.com> wrote in message
news:AJi%f.72465$%H.46607@clgrps13...
Show quoteHide quote
>
> "Adam Honek" <AdamHo***@Webmaster2001.freeserve.co.uk> wrote in message
> news:eN9ktHcXGHA.3560@TK2MSFTNGP04.phx.gbl...
>
>> 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?
>
>
>