469,299 Members | 2,050 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,299 developers. It's quick & easy.

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 4182

<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
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.