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 Hint property gets and sets the hint text displayed when the Edit control is empty.
This hint text is displayed directly in the control and it disappears as soon as a character is entered. This hint text can be defined:
  • in WINDEV and WINDEV Mobile, in the "Help" tab of the Edit control description window,
  • in WEBDEV, in the "Content" tab of the control description window.
Example
EDT_Edit1.Hint = "Type the customer name"
EDT_Password.Hint = "Password"
EDT_Date.Hint = "Exit date, 12/06/2007"
Syntax

Getting the hint text Hide the details

<Hint text> = <Control used>.Hint
<Hint text>: Character string
Text to be displayed in the specified control when the following conditions are met:
  • The Edit control (or the control of an editable Combo Box) is empty.
  • No data is being entered in the control.
<Control used>: Control name
Name of the control used: Edit control or editable Combo Box.

Changing the hint text Hide the details

<Control used>.Hint = <Hint text>
<Control used>: Control name
Name of the control used: Edit control or editable Combo Box.
<Hint text>: Character string
Text to be displayed in the specified control when the following conditions are met:
  • The Edit control (or the control of an editable Combo Box) is empty.
  • No data is being entered in the control.
If this parameter is an empty string (""), no hint text will be displayed.
This text can correspond to a graphical string (that uses gBackground, gImage, etc.).
Remarks
Check "Blank if 0" if you want the hint text to be displayed in Numeric, Currency or Currency + Euro Edit controls.
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/30/2023

Send a report | Local help