|
|
|
|
DeleteButton (Property) In french: BoutonSuppression
The DeleteButton property is used to determine if there should be an automatic delete button in a Text Edit control, and to change its position.
// Enables the delete button on EDT_Edit1 // The button is always visible EDT_Edit1.DeleteButton = dbAlwaysVisible
Syntax
Finding out the position of the delete button in the edit control Hide the details
<Result> = <Edit control>.DeleteButton
<Result>: Integer constant Position of delete button:
| | dbAlwaysVisible | The delete button is always displayed. | dbinEdit | The delete button is displayed when the edit control is in edit mode. | dbNone | The delete button is not displayed. | dbOffEdit | The delete button is displayed when the edit control is not in edit mode. |
<Edit control>: Control name Text edit control to use.
Modifying the position of the delete button in the edit control Hide the details
<Edit control>.DeleteButton = <Delete button>
<Edit control>: Control name Text edit control to use. <Delete button>: Integer constant Position of delete button:
| | dbAlwaysVisible | The delete button is always displayed. | dbinEdit | The delete button is displayed when the edit control is in edit mode. | dbNone | The delete button is not displayed. | dbOffEdit | The delete button is displayed when the edit control is not in edit mode. |
Remarks The delete button is available for Text Edit controls only. It cannot be used on multiline, numeric, date and time edit controls, etc.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|