TX Text Control ActiveX

CaretWidth Property

Property

This property returns or sets the width of the caret in pixels. Text Control supports different settings for the caret in marked text fields and in standard text. A width value of zero indicates the default setting which is the system-defined window-border width in standard text and 2 pixels in marked text fields. The maximum width is 255 pixels. A different caret width in marked text fields is only used if the &H4 attribute has been set with the FieldEditAttr property.

Syntax

TXTextControl.CaretWidth(Caret) [= Width]

Parameters

ParameterDescription
CaretSpecifies the caret. It can be one of the following settings:

Caret

SettingMeaning
0Specifies the caret in standard text.
1Specifies the caret in marked text fields.

Data Types

NameData type
CaretInteger
Property valueInteger

Limitations

Run time only.

See Also