473,395 Members | 1,335 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,395 software developers and data experts.

Snaplines - distance from form borders

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

Similar topics

20
by: Xenophobe | last post by:
I have successfully converted the ASP code included in the following article to PHP: http://www.4guysfromrolla.com/webtech/040100-1.shtml As described the high and low latitudes and longitudes...
1
by: Henk ten Bos | last post by:
Hi All, consider the following situation: I have a form that contains an image. I would like to show a second form where at startup the top left corner of this second form is positioned exactly...
1
by: Glen Vermeylen | last post by:
Hi, For a project at school we have to automate the assignment of seats in classrooms to students during the exams. The lady who previously did everything manually kept the layouts of the...
2
by: Phill. W | last post by:
How can I make a Form that looks and feels like a normal Windows Form but that is *very* narrow? In some cases, this needs ot be /far/ less than the apparent, 112 pixel, intrinsic limit that VB...
14
by: Galen Somerville | last post by:
My current screen resolution is set to 1024 x 768. My form size always comes up as 1032 x 748. I have tried the help sample ' Retrieve the working rectangle from the Screen class ' using the...
1
by: Michele | last post by:
How can i use snaplines at runtime in my application? Thanks Michele
11
by: Dirntknow | last post by:
Further to my recent post in this newsgroup i've got to admit i'm struggling. I've no experience with javascript or it's workings. What i'd like is a simple converter to allow a user to input the...
9
by: nottheartistinquestion | last post by:
As an intellectual exercise, I've implemented an STL-esque List<and List<>::Iterator. Now, I would like a signed distance between two iterators which corresponds to their relative position in the...
2
by: nicstel | last post by:
Hello, I'm trying to find documentation about the xlwt (py_excelerator). I want to change the border of some cells. But the only types that I found is: double and dashed. How to do a simple line...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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.