ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The DeleteButton property allows you to determine if there is an automatic delete button in a Text Edit control, and to change its position.
Example
// Enables the delete button on EDT_Edit1
// The button is always visible
EDT_Edit1.DeleteButton = dbAlwaysVisible
Syntax

Getting the position of the delete button in the Edit control Hide the details

<Result> = <Edit control>.DeleteButton
<Result>: Integer constant
Position of the delete button:
dbAlwaysVisibleThe delete button is always displayed.
dbinEditThe delete button is displayed when the Edit control is in edit mode.
dbNoneThe delete button is not displayed.
dbOffEditThe delete button is displayed when the Edit control is not in edit mode.
<Edit control>: Control name
Text Edit control to use.

Changing 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 the delete button:
dbAlwaysVisibleThe delete button is always displayed.
dbinEditThe delete button is displayed when the Edit control is in edit mode.
dbNoneThe delete button is not displayed.
dbOffEditThe 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.
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/29/2024

Send a report | Local help