Adding a margin around a docked container?

  • Thread starter Thread starter dave
  • Start date Start date
D

dave

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
 
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.
 
Ben said:
Try setting the padding of the SplitterPanel parent of the tab control.

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).
 
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top