ComponentOne True DBInput Pro 8.0
SelStart Property (TDBText)

 

Reference> TDBText Control> TDBText Control Properties> SelStart Property (TDBText)

SelStart Property (TDBText)

This property can be used for tasks such as setting the insertion point, establishing an insertion range, selecting sub strings in a control, or clearing text. Used in conjunction with the Clipboard object, these properties are useful for copy, cut, and paste operations.

Syntax

control.SelStart= long

Read/Write at run time. Not available at design time.

Remarks

The control allows users to set the SelStart and SelLength properties in the GotFocus event to determine the cursor position and the selection upon receiving the focus, which will override the HighlightText and the CursorPosition property settings.

Setting the SelStart property to less than 0 will cause a run-time error. If this property's setting is greater than the text length, the control sets the property to the existing text length. Also, changing SelStart will change the selection to an insertion point and sets SelLength to 0.

This property will be determined based on characters and not bytes.

By default, the cursor will be placed on the first character of the first non-literal field.

If the underlying value or the text of the control is modified, the SelStart property will be automatically reset to the default value, the starting point on the first character of the first non-literal field.

See Also

SelText Property (TDBDate)

SelLength Property (TDBDate)

HighlightText Property (TDBDate)

HighlightText Property (TDBNumber)

CursorPosition Property (TDBDate)

CursorPosition Property (TDBMask)

CursorPosition Property (TDBTime)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback