Delphi environment setting options

Setting environment options (Setting the Environment Options)

Delphi environment option allows users to make changes (Project Options dialog box control engineering level settings) on the Delphi IDE at the global level. Select the main menu [Tools | Environment Options] menu item to display the Environment Options dialog; the dialog box is a multi-page dialog box, a total of ten pages. Introduced in the previous section to explain the Code Editor, the following will focus on Preferences, Library and Palette page.

 

Parameter setting page (The Preferences Page) preferences

Environment Options Page Preferences dialog box for setting a common parameter options Delphi: Delphi IDE to compile the control, auto-save mode and the Form Designer; Form Designer can also be provided on the surface of parameter options page. As shown below:

 

 

 

Desktop contents page area is used to determine when you save the project, Delphi number format to save the desktop.

Autosave options allows users to specify area: Each time you run the program automatically saves the file is Editor or Desktop. Personally, I do not like auto-save file Editor, and hopes to give up the current editing when needed. For example, he said, if the user's application to run disorders and destroy the Delphi IDE or Windows, the user will know that the last edit has been saved and, therefore, there is nothing to worry about. Where the Code Editor Project desktop check box to save the current size and position, all the forms, Alignment palette, Object Inspector and so on.

Compiling and running area, there are four options:

  • Show compiler progress when compiling the project, Delphi compiler progress dialog box is displayed. Most of the time do not need to turn on this option, because the speed of the Delphi compiler is fast, it is not necessary to monitor its progress.
  • Warn on package rebuild 能在用户重建当前位于组件选项板中的程序包之前向用户提出警告。
  • Minimize on run 若选中本选项,则每当从IDE运行目标程序,整个IDE就会极小化。
  • Hide designers on run 能在程序运行时隐藏Form Designer,Object Inspector以及其他Form Designer支持窗口。但是,Delphi主窗口和Code Editor仍然可见。 
  • Note

    当选择Minimize on run选项时,程序中一旦有需要用到调试器的动作(比如异常事件、断点等),Delphi IDE就再次显示出来。

    页面上的Shared repository区域使用户能从Directory编辑框输入适当的路径来指定存储Object Repository(对象库)信息的位置。当使用同一个工程的一群人都要用对象库中的对象时,这个选项对用户很有帮助。还可以在Directory编辑框中输入指向网上某个位置的路径,用户添加到Object Repository中的所有对象都将保存到网上指定位置,并允许其他组的成员继承使用。

 

设计页面(The Designer Page)

image

 

该页面上的选项大多是不需要解释,大家就能看明白的。

  • Display grid选项是用来打开或关闭Form Designer中的网格,它只影响网格的可见显示,不影响对象是否移向网格点。
  • Snap to grid选项确定:放置和移动的组件是否移至网格点。
  • X和Y网格尺寸字段用于设置网格的大小,其缺省为8个像素。
  • Show component captions选项适用于窗体上的非可视化组件,当选择该选项时,Form Designer在非可视化组件图标的下方显示该组件Name属性。

库页面(The Library Page)

image

Library path字段用于指定库文件的路径,组件选项板要使用这些库文件。正常情况下,用户不必更改这个路径。

BPL output directory和DCP output directory字段用于指定存放程序包输出文件的目录。例如,用户可能更愿意将程序包(.bpl)创建在Windows\System或Winnt\System32目录下(程序包文件要求在系统路径下)。

 

选项板页面

image

该页面用于制定Component Palette组件选项板。

用户可以在该页面上改变Component Palette中页面的排列顺序。位于该页面左侧的Pages列表框,勒出当前在Component Palette中全部页面。对于不同的Delphi版本,Pages列表框中页面可能与上图所示不大一样(例如,Midas标签只对于Delphi的企业版有效)。列表框的底部有一个[All]列表,它显示Component Palette全部页面中安装的组件。Component列表框显示从Pages列表框中选取的页面中的组件。

要重排Pages列表框中页面的次序,可在其中拖动页面到用户希望的位置;如果要让Samples标签页出现在组件选项板的第一个位置,用户只需把该页面拖动Pages列表框的顶头;也可以点击列表框中的一个页面,然后用Move Up和Move Down按钮来移动它到新的位置。

可以增加、删除页面,也可以更改页面的名称。要增加页面,点击Add按钮,系统会提示用户输入页面名;用户输入页面后,新的页面即被创建。例如,当用户创建了一些组件,并希望把这些组件放到Component Palette中用户自己的页面上时,就需要增加页面。还可以将常用的VCL组件移到新创建的页面上,以便快速查找。

Note

用户可以将组件从一个页面移到另一个页面上,但不能把一个页面上的组件复制到另一个页面上。然而,用户可将任意已安装组件增加到Component Palette中任意页面上;首先在Pages列表框中选择[All]项,然后从Component列表框拖动一个组件至Pages列表框中任一页面。

删除页面和更改页面名称都是简单易懂的操作。就像使用Object Repository时一样,只有当一个页面上没有组件时,才能将它删除。

就像重排页面一样,一个页面上的组件也可以重新排列。要移动给一个组件,可将它拖至Component列表框中新的位置,也可用Move Up或Move Down按钮移动组件。要将组件移到一个新页面,只需把它拖放到Pages列表框中新页面的页面名上。选取一个组件,点击Delete按钮,即可删除该组件。

 

到此为止,大家对Delphi的工具有了进一步的了解。有些Delphi工具容易被遗漏,因此,这几讲对Delphi工具的概述,对大家会有一些帮助。有些工具可能暂时还用不上,等到将来要使用这些工具时,大家可以反过来再看看这些讲解。

Guess you like

Origin www.cnblogs.com/ximi07/p/12108772.html