ComponentOne True DBInput Pro 8.0
EditMode Property (TDBText)

 

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

EditMode Property (TDBText)

Sets/returns the editing mode for the control. This property provides both insert and overwrite modes for editing.

Syntax

control.EditMode= value

Read/Write at run time and design time.

Values

Design Time

Run Time

0 - Insert (Default)

dbiInsert

1 - Overwrite

dbiOverwrite

2 - Insert Fixed

dbiInsertFixed

3 - Fixed

dbiOverwriteFixed

Remarks

If set to 0-Insert or 1-Overwrite, the insert or the overwrite mode will be set as the default setting, and the control allows pressing the Insert key to toggle between insert and overwrite mode at run time.

If set to 2-Insert Fixed or 3-Overwrite Fixed, the insert or the overwrite mode will be set as the permanent mode for editing. You will not be able to toggle the Insert key at run time.

Once the control is filled reaching the maximum characters specified with the MaxLength property, you will not be able to insert text when set to the Insert mode. In this case, the Overwrite mode is recommended.

In the TDBNumLite control, when the cursor is placed on the rightmost digit of the integer and the decimal portion, the entered value will be always inserted.

In the TDBText control, the current edit mode will be applied to the drop-down edit window when dropping the window down. If changing the mode within the edit window, the new mode will be set back to the control upon closing the window. In this case the EditModeChange event will be fired and the EditModeStatus property will be changed as soon as the focus returns into the control.

During input, the control allows deletion only within the current field using the DEL key. The text is pulled together and handled accordingly based on the date values.

The IME mode will be completely disabled when the control has the focus.

See Also

ValidateMode Property (TDBDate)

ValidateMode Property (TDBTime)

EditModeStatus Property (TDBText)

EditModeChange Event (TDBText)

 

 


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

Product Support Forum  |  Documentation Feedback