Delphi7 Ide Overview (2)

zhaozj2021-02-16  62

Environmental option

Many recent updates are related to the usual environmental option dialog (Environment Options Dialog Box). The options page of this dialog is reinited in Delphi 6, and the Form Designer option is removed from the Preferences page to the new Designer page.

§ The Preferences page of the Environmental Options dialog has a Check Box, this Check Box prevents the Delphi window from being stopped with each other.

§ Environment Variables Page Allows you to see system environment variables (such as standard PathNames pathnames and OS settings) and set user-defined variables. It is the advantage that you can use system variables and user-defined variables in each dialog of IDE - for example, you can avoid hard-coding usually used for PathNames, replacing them with a variable. In other words, environment variables are similarly working similarly to $ delphi variables, involving the Base Directory, but can be defined by the user.

§ In Internet Page, you can choose the default file extension for HTML and XML files (mainly through WebSnap Framework), and enable an external editor to contact each extension.

About menu

Delphi Menu Bar (a more fashionable look in Delphi7) is an important way to combine with IDE, although you may use shortcuts and shortcut menu to complete most of you. The menu bar has changed many reactions to your current operation: You have to get a full list of operations you can perform on the current window or component, you need to right click on the mouse button.

The menu bar depends on the third-party tools you have installed and the corresponding changes. In Delphi 7, ModelMaker has its own menu. By installing popular plugins like GexPerts or even my own wizard (more details see Appendix B, "Extra delphi Tools from Other Sources" and A, "Extra Delphi Tools By The Author" will see other menus.

The relevant menus added to Delphi in the nearest versions are Window Menu in the IDE. This menu lists the open window; before, you can get this list or View ® Window List Menu Item by using the Alt 0 key. This window menu is indeed convenient, because some windows often hide behind other windows and difficult to find. By using settings in a Windows registry You can control the letters of this menu: Looking for the main window subkey (under HKEY_CURRENT_USER / SOFTWARE / BORLAND / DELPHI / 7.0). This registration button uses a string (instead of the Boolean value), where '-1' and 'true' represent true, '0', and 'false' represent false.

skill

In Delphi 7, the window menu ends with a new command: Next Window. This command is especially useful in the form of a shortcut: Alt end. Various windows that skip IDEs have never been so simple (at least, in the case where there is no Add-ON tool).

Environmental Options dialog

As I have already paid, some IDE settings require you to edit the registry directly. I will discuss these sets of more more content in this chapter. Of course, the most common settings can be easily adjusted using the Environmental Options dialog, which is available from the Tool Menu Tools Menu with Edit Options Editor Options and Debug Option. Most of the settings are very intuitive and have a sufficient description in the Delphi Help file. Chart 1.2 shows my standard settings for Preferences Page for this dialog. Chart 1.2: Preferences Page Page of Environmental Dialog (Environment Options Dialog Box)

To-do list

Another feature that is not fully utilized in Delphi 5 but still not fully utilized is to-do list. This is a list of tasks you still have to complete - this is a collection of notes (or programmers; this tool is very useful). Although this idea is not novel, the key concept of To-Do List in Delphi is that it works as a two-way (TWO-Way) tool.

You can add or modify to-do items by adding special Todo Note to any file of a project. You can add or modify to-do items; be a project; then you will see the corresponding input in the list. In addition, you can visualize the items in the list to modify the corresponding source code comments. For example, here is the to-do ListItem probably possible:

Procedure TFORM1.FormCreate (Sender: TOBJECT);

Begin

// Todo -omarco: Add Creeion Code

END;

The same option can be edited in the window displayed in Figure 1.3, together with the To-Do List window.

Figure 1.3: Edit to-Do Item window can be used to modify a to-do option, and you can also do one of the source code.

The exception of this two-way rule is the definition of Project-Wide To-Do Items. You must add these items directly to the list. To do this, you can use the CTRL A key in the To-Do List window or click the mouse button in the window and select Add from the shortcut menu. These items are saved in a special file to extend the names .todo with the same root name as the project file .todo

You can use multiple options with a TODO annotation. You can use -o (like in the previous code excerpt) indicating that the owner (programmers entering the comment), with the -c option to indicate the classification, or simply use a number from 1 to 5 to indicate priority (0, Or no numbers indicate that there is no priority being placed). For example, using the add to-do item command (or Ctrl SHIFT T shortcut) on the Editor's Shortcut Menu:

{TODO 2-Marco: Button Pressed}

Delphi handles each thing after parentheses - the end of the line or to the closed braces, depend on the type of comment - as the text of To-do Item.

Finally, you can check a project in the To-Do List window indicating that it has been completed. The source code comment will change from TODO to DONE. You can also manually change comments in the source code to check the display of the tag in the To-Do List window.

One of the most powerful elements in this architecture is to-do list main window, which can come from the source code file to-do information including your classification, sorting, and filtering, Plain Text or an HTML TABLE outputs them to the clipboard. All of these options are available on the context menu Context Menu.

Extended Compile Messages and Search Results in Delphi 7

A small information window appears under the editor by the default method; it displays compiler information and search results. This window is quite significant modification in Delphi 7. First, the search results are displayed in different tags so they do not interfere with compilation information as in the past. Second, every time you do a different search, you can ask Delphi

The result is displayed in a different page, so the result of the previous search operation is still available.

You can come back and round up in this window tab through Alt Page Down and Alt Page Up Shortcuts. (The same order is working for other Tabbed Views).

If you compile errors, use Command View ® Additional Message Info you can activate another new window. At that time, when you compile a programming, this Message Hints Information prompt window will provide additional information for some common error messages, providing suggestions on how to modify errors.

This type of help is designed for programmers, but this may be more convenient to keep this window around. Recognizing that this information is fully customizable: A project development leader can put the appropriate description of the common mistake in a form, which means special things for new developers. Do this, follow the suggestions in the file that resident in this feature, this file is the msginfo70.ini file of the Delphi bin folder.

转载请注明原文地址:https://www.9cbs.com/read-22628.html

New Post(0)