资源描述
Delphi与OUCL控件对照表
Delphi控件
OUCL控件
TDBGrid
TBrowser
TButton
TButton
TCheckBox
TCheckBox
TComboBox
TComboBox
TForm
TDialog、TWindow
TEdit
TEdit
TGroupBox
TGroup
TLabel
TLabel
TBevel
TLine
TListBox
TList
TMemo
TMultiEdit
TRadioButton
TRadioButton
TProgressBar
TScroller
Delphi的IDE环境设置要求
菜单tool--environment options
designer
display grid
true
snap to grid
true
grid size X
10
grid size Y
25
Delphi的Form属性设置要求
Delphi属性
Delphi子属性
取值
说明
font
size
14
charset
GB2312_CHARSET
name
Courier New
parentfont
true
通用属性
Left
Top
Width
Height
Caption
Delphi的控件属性设置集中说明
Delphi属性
Delphi子属性
取值
说明
通用属性
Left
设置为偶数
Top
Width
Height
Caption
TabOrder
控件顺序
ReadOnly
对应的属性为FieldEditFlag,表示该Browser是否允许编辑。如果为true,则不允许编辑。
TDBGrid
Options
对应的属性为InsertModeFlag,Delphi中如果该属性设置为“dgMultiSelect”,则表示该表格允许插入一新行。
TDBGrid
Columns
DropDownRows
字段的长度,为整型。
TDBGrid
ReadOnly
字段编辑属性只读,不允许编辑
TDBGrid
FieldName
该属性对应字段的名称
TDBGrid
Title.Caption
该属性设置字段的标题。
TDBGrid
PickList.Strings
定义字段的Mask输入属性,设置内容为:(MaskFirstChar="A")(MaskLastChar="Z")(OtherMaskString="+-*/"),如果不需要设置输入限制,则该属性就为空即可。
TDBGrid
Shape
bsBottomLine
bsTopLine
TLine
ModalResult
TButton
Checked
True
TCheckBox
Text
TEdit
MaxLength
TEdit
PasswordChar
TEdit
HelpKeyword
(MaskFirstChar="A")(MaskLastChar="Z")(OtherMaskString="+-*/")
TEdit
Tag
TEdit
BevelKind
TList
ReadOnly
TBrowser
Hint
TMultiEdit
Step
TScroller
Orientation
TScroller
Lines.Strings
TMultiEdit
Options
dgMultiSelect
TBrowser
TabOrder
Items.Strings
TComboBox
事件属性
OnChange
OnEnter
OnExit
OnKeyPress
OnKeyPressEnter
OnClick
Columns
DropDownRows
TDBGrid
item
ReadOnly
FieldName
Title.Caption
PickList.Strings
Delphi的控件属性设置【TDBGrid】对应【TBrowser】
Delphi属性
Delphi子属性
说明
通用属性
Left
设置为偶数
Top
Width
Height
Caption
ReadOnly
对应的属性为FieldEditFlag,表示该Browser是否允许编辑。如果为true,则不允许编辑。
Options
对应的属性为InsertModeFlag,Delphi中如果该属性设置为“dgMultiSelect”,则表示该表格允许插入一新行。
Columns
DropDownRows
字段的长度,为整型。
ReadOnly
字段编辑属性只读,不允许编辑
FieldName
该属性对应字段的名称
Title.Caption
该属性设置字段的标题。
PickList.Strings
定义字段的Mask输入属性,设置内容为:(MaskFirstChar="A")(MaskLastChar="Z")(OtherMaskString="+-*/"),如果不需要设置输入限制,则该属性就为空即可。
Delphi的控件属性设置【TButton】对应【TButton】
Delphi属性
Delphi子属性
说明
通用属性
Left
设置为偶数
Top
Width
Height
Caption
ModalResult
对应的属性为Button_Type,主要是,如果你想按下这个按钮退出对话框,你可以选择OK、Cancel、Close等按钮类型,否则选择其他,这样按下这个按钮就不会退出对话框。
Delphi的控件属性设置【TCheckBox】对应【TCheckBox】
Delphi属性
Delphi子属性
说明
通用属性
Left
设置为偶数
Top
Width
Height
Caption
Checked
当属性值为true时,表示CheckBox选中
Delphi的控件属性设置【TComboBox】对应【TComboBox】
Delphi属性
Delphi子属性
说明
通用属性
Left
设置为奇数
Top
Width
Height
Caption
Items
Items.Strings
如果想设置TComboBox控件的列表内容,你可以直接在Delphi的控件中属性Items直接增加即可。
BevelKind
当设置该属性时,表示列表框是否显示边框。
Delphi的控件属性设置【TForm】对应【TDialog】【TWindow】
Delphi属性
Delphi子属性
说明
通用属性
Left
设置为偶数
Top
Width
Height
Caption
Delphi的控件属性设置【TEdit】对应【TEdit】
Delphi属性
Delphi子属性
说明
通用属性
Left
设置为奇数
Top
Width
Height
Caption
Text
单行文本编辑控件的内容
MaxLength
允许输入的最大字符数,对于定长编辑控件需要设置,不定长编辑部需要设置。
PasswordChar
设置该属性表明该控件将进行输入密码。
HelpKeyword
设置单行文本编辑的Mask属性,表述允许输入的最小字符为’A’,最大字符为’Z’,另外还允许输入“+-*/”之外的字符,除这些字符之外都不允许。(MaskFirstChar="A")(MaskLastChar="Z")(OtherMaskString="+-*/")
Tag
设置编辑模式,0修改模式(正常模式,光标定位在首),1表示插入模式(光标定位在尾)
Delphi的控件属性设置【TGroupBox】对应【TGroup】
Delphi属性
Delphi子属性
说明
通用属性
Left
设置为偶数
Top
Width
Height
Caption
Delphi的控件属性设置【TLabel】对应【TLabel】
Delphi属性
Delphi子属性
说明
通用属性
Left
设置为偶数
Top
Width
Height
Caption
Delphi的控件属性设置【TBevel】对应【TLine】
Delphi属性
Delphi子属性
说明
通用属性
Left
设置为偶数
Top
Width
Height
Caption
Shape
当该属性设置为bsBottomLine时表示水平方向的线,当设置为bsTopLineiaoshi垂直方向的线。
Delphi的控件属性设置【TListBox】对应【TList】
Delphi属性
Delphi子属性
说明
通用属性
Left
设置为偶数
Top
Width
Height
Caption
BevelKind
当设置该属性时,表示列表框是否显示边框。
Items
Items.Strings
如果想设置TComboBox控件的列表内容,你可以直接在Delphi的控件中属性Items直接增加即可。
Delphi的控件属性设置【TMemo】对应【TMultiEdit】
Delphi属性
Delphi子属性
说明
通用属性
Left
设置为偶数
Top
Width
Height
Caption
Hint
设置多行文本编辑框的文件名。
Lines
Lines.Strings
对于直接的字符串编辑,你可以直接输入要编辑的文本。
Delphi的控件属性设置【TRadioButton】对应【TRadioButton】
Delphi属性
Delphi子属性
说明
通用属性
Left
设置为偶数
Top
Width
Height
Caption
Checked
当属性值为true时,表示TRadioButton选中
Delphi的控件属性设置【TProgressBar】对应【TScroller】
Delphi属性
Delphi子属性
说明
通用属性
Left
设置为偶数
Top
Width
Height
Caption
Step
设置步长
所有的Delphi的控件之事件属性【TEvent】
Delphi属性
Delphi子属性
说明
事件类型
OnChange
可以根据需要,对这些事件类型产生对应的事件处理函数,OUCL支持这些事件并自动根据事件类型产生与之对应的事件函数。
OnEnter
OnExit
OnKeyPress
OnKeyPressEnter
OnClick
展开阅读全文