472,126 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,126 software developers and data experts.

Adding a margin around a docked container?

I have a propery sheet inside of a splitview container. Unfortunately,
it stuff the first tab right up into the top left corner when docked,
which doesn't look good (I'd prefer border). According to the SDK, the
margin setting has no effect when docked, which appears to be true.

Any way to add a margin at all? Even some kind of skinny blank control
I can stick on the top and left that the splitview container then docks
against?

Thanks,
Dave

Jan 17 '07 #1
3 4327

<da**@softwareonline.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.com...
>I have a propery sheet inside of a splitview container. Unfortunately,
it stuff the first tab right up into the top left corner when docked,
which doesn't look good (I'd prefer border). According to the SDK, the
margin setting has no effect when docked, which appears to be true.

Any way to add a margin at all? Even some kind of skinny blank control
I can stick on the top and left that the splitview container then docks
against?

Try setting the padding of the SplitterPanel parent of the tab control.
>
Thanks,
Dave

Jan 17 '07 #2

Ben Voigt wrote:
<da**@softwareonline.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.com...
I have a propery sheet inside of a splitview container. Unfortunately,
it stuff the first tab right up into the top left corner when docked,
which doesn't look good (I'd prefer border). According to the SDK, the
margin setting has no effect when docked, which appears to be true.

Any way to add a margin at all? Even some kind of skinny blank control
I can stick on the top and left that the splitview container then docks
against?


Try setting the padding of the SplitterPanel parent of the tab control.

Thanks,
Dave
That would be ideal, but so far as I can see, SplitContainer does not
expose a padding option (at least not in the properties view of the
designer).

Jan 17 '07 #3

d...@softwareonline.com wrote:
Ben Voigt wrote:
<da**@softwareonline.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.com...
>I have a propery sheet inside of a splitview container. Unfortunately,
it stuff the first tab right up into the top left corner when docked,
which doesn't look good (I'd prefer border). According to the SDK, the
margin setting has no effect when docked, which appears to be true.
>
Any way to add a margin at all? Even some kind of skinny blank control
I can stick on the top and left that the splitview container then docks
against?

Try setting the padding of the SplitterPanel parent of the tab control.
>
Thanks,
Dave
>

That would be ideal, but so far as I can see, SplitContainer does not
expose a padding option (at least not in the properties view of the
designer).
Whoops... the SplitContainer doesn't, but the Panel (as you had said)
does. Thanks, this solved my problem!

Jan 17 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Haines Brown | last post: by
1 post views Thread by Bob (remove 'excise-' to reply) | last post: by
6 posts views Thread by Hacking Bear | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.