473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 4453

<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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Haines Brown | last post by:
I find that when I use list-style-image with galeon or mozilla, padding is inserted between the symbol image and the following list text, while under IE 5.0 it seems to be inserted before the image...
8
by: Yasutaka Ito | last post by:
Hi, Is there a way to find to which control the current control is docked against? For example, let's say I have panel1 and panel2 docked to left within a form. The panel1 is the first one on...
1
by: Bob (remove 'excise-' to reply) | last post by:
I've got a form with three controls: a left-docked richtextbox, a right-docked form, and a right-docked listview. When I resize the form, the listview increases and decreases, the splitter...
1
by: Mike TI | last post by:
April 20, 2006 Hi All Is there a way I can tell the name of the user control docked in a Split Container Panel. I am using VB.Net 2005. e.g. if I dock a user control using the code below: ...
6
by: Hacking Bear | last post by:
Hi, I still don't quite fully understand how to handle mixing border/margin pixel width with percentage width. In the example below, I want to place side-by-side two DIV boxes inside a box....
11
by: shapper | last post by:
Hello, I am creating a centered web site with various div's inside the main (pBase) div. Somehow, I am getting a gap on the top of my browser window both in IE and Firefox. I tried...
1
by: Dave Siegel | last post by:
Hi, I've made a container div and put 2 div's inside of that for easy positioning.. The problem is that the container div has a standard 10px or so top margin which makes it go down too much.....
1
by: superDk | last post by:
Hello, IE6 is adding a large margin between my two containers (container1 & container2) everything works fine in IE7 and Firefox. I've been searching on-line for a fix but I've had no luck. It...
7
by: GTalbot | last post by:
Hello fellow authoring.stylesheets colleagues, Can someone please explain why the bottom margin of the last inflow block-level child in an overflowed parent should not have its margin reachable....
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.