scGPExtControls.pas
TscGPCustomEdit = class(TCustomMaskEdit)
TscGPEdit = class(TscGPCustomEdit)
一个编辑器,可以多种形状,图标、还可以包含按钮的编辑器。
名称 | 类型 | 说明 |
---|---|---|
LeftButton | TscGPEditButton | 调整左侧按钮 ,可以在编辑框左侧显示一个按钮 |
RightButton | TscGPEditButton | 调整右侧按钮,可以在编辑框右侧显示一个按钮 |
Transparent | Boolean | 为真时编辑框透明 |
Prompt text | String | Text属性为真时的提示信息 |
HidePromptTextIfFocused | Boolean | 当编辑框获得焦点时是否隐藏提示信息 |
Options | TscGPEditOptions | 编辑器的样式、颜色、背景等UI设置 |
ContentMarginLeft, ContentMarginTop, ContentMarginRight, ContentMarginBottom | Integer | 编辑器内容与四周的边距 |
名称 | 类型 | 说明 |
---|---|---|
OnLeftButtonClick | TNotifyEvent | Click event for left button |
OnRightButtonClick | TNotifyEvent | Click event for right button |
OnDrawBackground | TscPaintControlEvent | procedure(ACanvas: TCanvas; ARect:
TRect; AState: TscsCtrlState) of object; Note, that ARect - is a client (text) area of the editor |
Note:
Use
TControl.StyleElements property to adjust custom colors for client and font in
all controls when VCL Style is enabled!
|