Old friend returns - Delphi2005 trial note 2

xiaoxiao2021-03-06  39

Delphi2005 is no longer a single tool development environment, but an integrated development environment of multiple languages ​​in multiple languages. In the interface, the default Tool Palette (Ctrl Alt P) in the lower right corner is a good tool, which allows developers to choose the language environment you want to develop. When I choose the VCL Form Application of Delphi Projects, I will see the familiar control groups in the Delphi7 era.

A very useful thing in 2005 is to refactor -Refactoring. Recently, when I use Eclipse to develop Java, I found this feature very well, it enables secondary development or maintenance. This magical function can now be implemented in Delphi2005.

From the previous Rename, you need to do it: change his definition to change all his references. Now you only have this place, Delphi will help you with all the places used in it.

Delphi is a language that must be used first. From the time of development, you suddenly want to use a new variable, what should I do, you have to go back to the unit's definition section to define it, then use it in implementation. What now? When I assign a value that is not defined in advance, I will use the reconstruction to implement the definition. Var s: String; is automatically written. More amazing is that we still write a function / process, we can take it out to form new functions / processes. So I remembered Javabean. Because you will see the same unit or in the same project, you will see the same code in different places. Although we can copy it, it will be readable, and the object-oriented style is coming. With a detached way, not only the code is neat, but it is easy to allow the encoders to use the function / process that has been written and extracted in the appropriate place.

Sync Edit Mode, let us clearly write or overwritten multiple same parameters. I don't have habitually when I see Delphi8's form is changed to the VS interface, I am very uncomfortable. I want everyone to miss the movable form, Delphi2005 passed the Tool / Option / Delphi Options-Vcl Designer-Embedded Designer. The switching of these two interfaces can be implemented.

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

New Post(0)