Setting the environment options)
The Delphi environment option enables you to modify Delphi ide at the local level (Project Options dialog box controls project-level settings ). Choose tools | environment options from the main menu to display the environment Options dialog box. This dialog box is a multi-page dialog box with 10 pages in total. This section describes the preferences, library, and palette pages.
Parameter settings page (the preferences page)
The preferences page of the Environment Options dialog box is used to set common Delphi Parameter options: Delphi ide controls the compilation, automatic saving, and Form Designer methods. You can also set the Parameter options of Form Designer on this page. For example:
The desktop contents area on the page is used to determine how many desktop formats Delphi saves when saving the project.
The autosave options area allows you to specify whether the editor file or desktop is automatically saved every time you run the program. Personally, I do not like to automatically save the editor file, but want to discard the current editing when necessary. For example, if your application program runs abnormally and destroys Delphi ide or windows, you will know that the last edit has been saved, so there is nothing to worry about. The project desktop check box saves the current size and position of the Code Editor, all forms, alignment palette, and object inspector.
The compiling and running area has four options:
- Show compiler SS: when compiling a project, Delphi displays the compiler progress dialog box. You do not need to enable this option most of the time, Because delphi compilation is fast and there is no need to monitor its progress.
- Warn on package rebuild can warn users before the user recreates the package currently in the component palette.
- Minimize on run If this option is selected, the entire IDE will be minimized whenever the target program is run from the IDE.
- Hide designers on run can hide the window supported by Form Designer, object inspector, and other Form Designer when the program is running. However, the Delphi Main Window and code editor are still visible.
Note
When the minimize on run option is selected, Delphi ide displays the debugger action (such as exception events and breakpoints) in the program again.
The shared repository area on the page enables you to enter an appropriate path from the directory editing box to specify the location where the object repository (Object Library) information is stored. This option is helpful when a group of people using the same project use objects in the object library. You can also enter a path pointing to a location on the Internet in the directory editing box. All objects added to the object repository will be saved to the specified location on the Internet and can be inherited and used by members of other groups.
The designer page)
Most of the options on this page do not need to be explained, so you can understand them.
- The display grid option is used to open or close the grid in Form Designer. It only affects the visible display of the grid and does not affect whether the object moves to the grid point.
- The snap to grid option determines whether the placed and moved components are moved to the grid point.
- The X and Y grid size fields are used to set the grid size. The default value is 8 pixels.
- The show component captions option applies to non-visual components on the form. When this option is selected, Form Designer displays the component name attribute below the non-visual component icon.
The library page)
The library path field is used to specify the path of the library files. These library files must be used in the component palette. Normally, you do not have to change this path.
The BPL output directory and DCP output directory fields are used to specify the directory for storing the package output file. For example, you may prefer to create a package (. BPL) in the windows \ SYSTEM or WINNT \ system32 directory (the package file must be in the system path ).
Option board page
This page is used to define the component palette.
On this page, you can change the order of pages in the component palette. The pages list box on the left of the page lists all pages currently in component palette. For different versions of Delphi, the pages in the pages list box may not be the same as shown in (for example, the Midas tag is only valid for the Enterprise Edition of Delphi ). There is a [all] list at the bottom of the list box, which displays the components installed on the component palette all page. The component list box displays the components on the page selected from the pages list box.
To rearrange the order of pages in the pages list box, you can drag the page to the desired position. If you want the samples tab to appear in the first position of the component palette, you only need to drag the top header of the pages list box. You can also click a page in the list box and use the move up and move down buttons to move it to the new position.
You can add, delete, or change the Page name. To add a page, click Add. The system prompts you to enter the Page name. After you enter the page, a new page is created. For example, you need to add a page when you create some components and place them in the component palette. You can also move common VCL components to a newly created page for quick search.
Note
You can move a component from one page to another, but you cannot copy the component on one page to another. However, you can add any installed components to any page of component palette. First, select [all] In the pages list box, drag a component from the component list box to any page in the pages list box.
Deleting a page or changing a Page name is easy to understand. Just like when object repository is used, a page can be deleted only when no component exists.
Just like reorganizing a page, components on a page can be rearranged. To move a component, you can drag it to the new position in the component list box. You can also move the component by moving up or down. To move a widget to a new page, drag it to the page name of the new page in the pages list box. Select a component and click Delete to delete the component.
So far, you have a better understanding of the Delphi tool. Some Delphi tools are easy to be omitted. Therefore, the introduction of these tools will be helpful to you. Some tools may not be used yet. When you want to use these tools in the future, you can refer to these explanations.