ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Tooltip of a Tab control
  • Tooltip of a Radio Button and/or Check Box control
  • Tooltip associated with row of a TreeView control
  • Tooltip associated with a Table control and its columns
  • Limitations
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The ToolTip property is gets and changes the tooltip text associated with a window or page control.
WINDEV Remarks:
  • WINDEV The ToolTip property can be used to insert images and colored text into the tooltip via the gXXX functions.
  • WINDEV The ToolTip property allows you to insert RTF content in tooltips.
  • WINDEV End users can modify the tooltips in their applications. For more details, see Control tooltips (AAF).
  • WINDEV The tooltip text can be displayed in a standard or custom tooltip. For more details, see Custom tooltips.
Reminder: To enter the message displayed in the tooltip of a field in the editor:
  1. Open the control description window (select "Description" in the context menu).
  2. On the "Help" tab, in the "Tooltip" area, type the text of the tooltip.
    Remarks:
    • In a multilingual application, the text of the tooltip can be typed in several languages.
    • WINDEV If the "RTF" option is checked, the text can be formatted via the options of the RTF toolbar. The formatting will be maintained at runtime.
Example
WINDEVJavaUser code (UMC)
// Change the tooltip text according to the type of user
IF User_Type = 0 THEN
	EDT_Name.ToolTip = "Type the customer name"
ELSE
	EDT_Name.ToolTip = "Customer name"
END
WINDEVJavaUser code (UMC)
// Change the tooltip text for the current element 
// in a TreeView control
TREE_DirectoryTreeView[TREE_DirectoryTreeView].ToolTip = "New tooltip"
WINDEVUser code (UMC)
// Change the tooltip text using the gXXX functions
// in an Edit control 
EDT_TxtInput.ToolTip = gPen(LightRed) + ...
	gFont("Comic sans MS") + ...
	gFontUnderlined(True) + ...
	"Test tooltips with the gXXX functions" + ...
	CR + gImage("small dog.gif") + "TEST" + gFontBold(True) + "TEST"
WINDEVUser code (UMC)
// Change the tooltip text using an RTF file
EDT_TxtInput.ToolTip = fLoadText("C:\Temp\MyFile.RTF")
Syntax

Getting the tooltip text Hide the details

<Tooltip text> = <Control used>.ToolTip
<Tooltip text>: Character string
Current text of the tooltip associated with the control.
Note If the bubble text is in RTF, the returned text will contain the RTF tags.
<Control used>: Control name
Name of the control for which you want to get the tooltip text.

Changing the tooltip text Hide the details

<Control used>.ToolTip = <New tooltip text>
<Control used>: Control name
Name of the control for which you want to change the tooltip text.
<New tooltip text>: Character string
New tooltip text associated with the control. If this text is an empty string (""), no tooltip will be displayed.
WINDEV This text can contain images and be formatted using the gXXX WLanguage functions.
WINDEV This text can be in RTF (RTF file or text with RTF tags).
Remarks
WINDEVJavaUser code (UMC)

Tooltip of a Tab control

You can define a tooltip for each tab of a Tab control.
WINDEVJavaUser code (UMC)

Tooltip of a Radio Button and/or Check Box control

You can define a tooltip for the control and for each of its options. For example:
RADIO_MyRadioButton[1].ToolTip = "Option #1"
WINDEVJavaUser code (UMC)

Tooltip associated with row of a TreeView control

You can define a tooltip for each element o a TreeView control (TreeAdd, TreeInsert and TreeModify).
WINDEVJavaUser code (UMC)

Tooltip associated with a Table control and its columns

You can define a tooltip for a Table control and for each of its columns. The tooltip of the Table control is displayed if you hover over a column that doesn't have a tooltip.
WINDEVJavaUser code (UMC)

Limitations

WINDEV The ToolTip property applies only to windows and controls (including columns and cells of a table). This property cannot be used with menus.
Java The ToolTip property can only be used in the following controls:
  • Button control.
  • Static Text control.
  • Edit control.
  • Image control.
  • Check Box control.
  • Radio Button control.
  • List Box control.
  • Combo Box control.
  • TreeView control.
  • Tab control.
  • Table control.
  • Table control columns (Text, Combo Box or Check Box type).
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/05/2024

Send a report | Local help