|
|
|
|
|
AutomaticErase (Property) In french: EffacementAutomatique
The AutomaticErase property is used to: - find out whether an edit control is in "Automatic erase" mode.
- modify the "Automatic erase" characteristic of an edit control.
Remark: If an edit control is in "Automatic erase" mode, the value in the control is automatically selected when entering the control. This characteristic can be configured in the "Details" tab of the description window of control. // Temporarily disables the automatic erase // to avoid selecting everything during the call to SetFocus  // Stores the current automatic erase AutoErase is boolean AutoErase = EDT_Edit1.AutomaticErase EDT_Edit1.AutomaticErase = False  // Gives focus back to the edit control SetFocus(EDT_Edit1)  // Restores the automatic erase EDT_Edit1.AutomaticErase = True
Syntax
Finding out the "Automatic erase" mode Hide the details
<Current mode> = <Control used>.AutomaticErase
<Current mode>: Boolean - True if the "Automatic erase" mode is enabled,
- False otherwise.
<Control used>: Control name Name of element used: - Edit control,
- Text table column.
Modifying the "Automatic erase" mode Hide the details
<Control to use>.AutomaticErase = <New mode>
<Control to use>: Control name Name of element used: - Edit control,
- Text table column.
<New mode>: Boolean - True to enable the "Automatic erase" mode,
- False otherwise.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|