PC Review


Reply
Thread Tools Rate Thread

Adding a margin around a docked container?

 
 
dave@softwareonline.com
Guest
Posts: n/a
 
      17th Jan 2007
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

 
Reply With Quote
 
 
 
 
Ben Voigt
Guest
Posts: n/a
 
      17th Jan 2007

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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
>



 
Reply With Quote
 
dave@softwareonline.com
Guest
Posts: n/a
 
      17th Jan 2007

Ben Voigt wrote:
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >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).

 
Reply With Quote
 
dave@softwareonline.com
Guest
Posts: n/a
 
      17th Jan 2007

d...@softwareonline.com wrote:
> Ben Voigt wrote:
> > <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > >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!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Reference Note in the Margin kimmerdog Microsoft Word Document Management 3 23rd Apr 2010 08:51 PM
Adding Logic including Container.DataItem in the HTML code of DataGrid?? Lars Netzel Microsoft ASP .NET 1 14th May 2004 04:06 PM
Make Container UserControl force controls to be added to a child container control Codemonkey Microsoft Dot NET Framework Forms 2 21st Nov 2003 08:22 PM
Usercontrol as a container and docked constituents karlodb Microsoft VB .NET 0 24th Oct 2003 01:04 PM
adding user to specific OU container Altria Microsoft Windows 2000 Group Policy 0 6th Aug 2003 04:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:45 AM.