Chapter One Introduction to-delphi (II.) (2)

Source: Internet
Author: User

Once again, go to the "Additional" part Page, select a "bitbtn" button (the icon is an OK button with a green check mark), and put it underneath the other three button parts.

Click the Dialog tab, select the ColorDialog part that makes the icon in a 16-color grid, and place it anywhere on the form. Because this part is not a visual part, so its position does not affect the overall situation.

Adjustment and alignment of 1.2.3.2 parts

In general, the parts that are placed on the form are distributed, and their size is not the size that is really needed. In addition to the ColorDialog parts that are not visible, other parts need to be adjusted for position, size, and display typeface. The Alignment tools and window grids provided by Delphi are convenient for these adjustments.

1. Moving Parts

Just drop the mouse over the part that you want to move, press and hold the left arrow and move the cursor to the right place to release it, and the whole part will be moved to the new position.

2, adjust the size

First move the mouse cursor to change the size of the part, click the left button, select the part, the size regulator will appear, move the mouse to one of the small black squares, when the mouse into a drag direction indicator, press and drag the left mouse button, you can enlarge or reduce the part. The top and bottom small squares are used to move the corresponding edges, and the four-corner squares can move the connected two edges. To accurately describe the size of the part, on the object inspector, change the left (the pixel point of the part to the left edge of the form), top (the pixel points on the form's border to the top edge of the part), width (the width of the part itself), Height ( Properties such as the height of the part itself. As for changing the properties of a part, the following will be explained in detail.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.