By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,302 Members | 1,812 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,302 IT Pros & Developers. It's quick & easy.

Snaplines - distance from form borders

P: n/a
Is it possible to change the distance from the form's border the form
designer suggests when you use snaplines?

I think it should be smaller.

Jun 14 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Not quite understand your question? But is it important if it is only for
design time?

chanmm

<by*********@googlemail.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
Is it possible to change the distance from the form's border the form
designer suggests when you use snaplines?

I think it should be smaller.

Jun 14 '06 #2

P: n/a
If you create a form, for example, and add a button to it, then drag
the button to the right until the first snap line appears - you'll
notice the distance from the edge of the form is much bigger than the
distance the designer suggest when you position then button next to
another button.

I would like to change this distance from the form's borders. Is that
possible?

chanmm wrote:
Not quite understand your question? But is it important if it is only for
design time?

chanmm

<by*********@googlemail.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
Is it possible to change the distance from the form's border the form
designer suggests when you use snaplines?

I think it should be smaller.


Jun 15 '06 #3

P: n/a
The suggested distance between adjacent controls is the sum of their margin
values (i.e. A's right margin and B's left margin if A is left or B); the
suggested distance between a control and its parent container is the
control's margin plus the container's padding (container's left padding and
control's left margin if the control is on the left).

It looks like forms additionally suggest a 9 point buffer on their
boundaries (even with 0 padding); one way around this is to drop a panel
onto the form, dock-fill it, and place the controls into the panel; this
then gives you two anchor points : one at 3 points (the panel's 0 padding
plus the control's 3 margin), and one at 12 points (the 3 as before plus the
form's 9) - but if you layout your control's (in the panel) before you
dock-fill it, you only get the 3 (or more if you increase the panel's
padding).

Placing a dock-filled panel just for this seems a bit grungy, and at the end
of the day you can always just change the locations by hand anyway, but it
might help.

Marc

Marc
Jun 15 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.