There are several versions in the middle of Delphi 7 and Xe, which are not very popular. First, Delphi is somewhat marginalized, and second, 7 is almost perfect in the XP environment. There are fewer and fewer books on delphi on the market, and it is useless to provide information from 7 to Xe. Here I will try to list the differences and precautions between 7 and Xe, and give some clues to friends who need to upgrade.
1. 7 and Xe can coexist. The project file of 7 is. DPR, Xe is. dproj. If you use Xe to open the DPR file, you will be prompted to upgrade the file and create a new project file on your own. Xe creates the debug and history folders, And the compiled EXE files are placed in the debug folder.
2. XE works better on the big screen. 1024x768 is the mainstream when it comes out 7, so those floating forms can efficiently use space. The default layout of Xe is integrated. Compared with vs, Xe can also be switched to a classic floating form, but it looks strange. Another problem is that Xe is easier to use under multiple screens. Recommended resolution: 1920x1080
3. The Xe component Panel can be searched, which is very useful when there are many components. The default search component is reset after the component is selected. It can be set to always display the query result. It is very convenient to add the same component consecutively.
4. code template, which is simple but useful in 7. Xe is very powerful but complex than release. XML code needs to be edited, and there seems to be no documentation. Fortunately, many ready-made templates can be studied. For example, the for template can help you manually declare cyclic variables.
5. refactor reconstruction in the code. I personally think this is the most useful function. Of course, VS has also been available. As for how to use it, you must understand refactoring. The most common use is renaming.
6. Another block editing function, similar to refactoring, selects a piece of code. an editing button is displayed in the editor's Development bar, and the variable name can be changed after selection. Try it out.
7. The alignment toolbar is not displayed by default. You must right-click the toolbar and choose open. If you select edit-> align, a selection dialog box is displayed instead of the icon toolbar. There is also a space toolbar that can adjust the distance between components.
--- To be continued
Upgrade from Delphi 7 to Delphi XE