PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Tooltip of a Tab control
  • Tooltip associated with a Radio Button and/or Check Box control
  • Tooltip associated with row in a Treeview control
  • Tooltip associated with a Table control and with a column in a Table control
  • Tooltip associated with an element in a Site Map Path control
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..ToolTip is used to find out and modify the text displayed in the tooltip associated with a control found in a window or in a page.
WINDEVWINDEV Mobile Notes:
  • WINDEVWINDEV Mobile ..ToolTip is used to insert images and colored text into the tooltip via the gXXX functions.
  • WINDEV ..ToolTip is used to insert a text in RTF format into the tooltips.
  • Versions 21 and later
    WINDEV The end user can modify the tooltips found in his application. See Tooltip of controls (AAF) for more details.
    New in version 21
    WINDEV The end user can modify the tooltips found in his application. See Tooltip of controls (AAF) for more details.
    WINDEV The end user can modify the tooltips found in his application. See Tooltip of controls (AAF) for more details.
Reminder: To type the message displayed in the tooltip of a control in the editor:
  1. Display the description window of control ("Description" from the popup menu).
  2. In the "Help" tab, in the "Tooltip" area, type the text of the tooltip.
    Notes:
    • In a multilingual application, the text of the tooltip can be typed in several languages.
    • Versions 21 and later
      WINDEV If the "RTF" option is checked, the text can be formatted via the options of the RTF toolbar. The formatting will be respected at run time.
      New in version 21
      WINDEV If the "RTF" option is checked, the text can be formatted via the options of the RTF toolbar. The formatting will be respected at run time.
      WINDEV If the "RTF" option is checked, the text can be formatted via the options of the RTF toolbar. The formatting will be respected at run time.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store Apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store Apps mode.
Universal Windows 10 App This property is now available in Windows Store Apps mode.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Versions 22 and later
WEBDEV - Browser code This property is now available in browser code.
New in version 22
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Browser code This property is now available in browser code.
Versions 24 and later
Android This property is now available for Android applications.
New in version 24
Android This property is now available for Android applications.
Android This property is now available for Android applications.
Example
WINDEVWindows MobileUniversal Windows 10 AppJavaUser 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
WINDEVWindows MobileJavaUser code (UMC)
// Change the text of the tooltip for the current element
// in a TreeView control
TREE_DirectoryTreeView[TREE_DirectoryTreeView]..ToolTip = "New tooltip"
WINDEVWindows MobileUser code (UMC)
// Change the tooltip text by using the gXXX functions
// in an edit control
EDT_TxtInput..ToolTip = gPen(LightRed) + ...
gFont("Comic sans MS") + ...
gFontUnderlined(True) + ...
"Run the test of tooltips with the gXXX functions" + ...
CR + gImage("small dog.gif") + "TEST" + gFontBold(True) + "TEST"
WINDEVUser code (UMC)
// Change the text of the tooltip by using a file in RTF format
EDT_TxtInput..ToolTip = fLoadText("C:\Temp\MyFile.RTF")
WEBDEV - Server codeAjax
// Change the text of the tooltip for the element 2
// in a Site Map Path control
SMP_SiteMapPath[2]..ToolTip = "New tooltip"
Syntax

Finding out the text of the tooltip Hide the details

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

Modifying the text of the tooltip Hide the details

<Control used>..ToolTip = <New tooltip text>
<Control used>: Control name
Name of the control for which the text of the tooltip must be modified.
<New tooltip text>: Character string
New text for the tooltip associated with the control. If this text corresponds to an empty string (""), no tooltip will be displayed for this control.
WINDEVWINDEV Mobile This text can contain images and it can be formatted by using the gXXX functions of WLanguage.
WINDEV This text can correspond to a RTF text (RTF file or text with RTF tags).
Remarks
WINDEVWEBDEV - Server codeWindows MobileJavaUser code (UMC)

Tooltip of a Tab control

For the Tab controls, a tooltip can be defined for each one of the tab panes.
WINDEVWEBDEV - Server codeWindows MobileJavaPHPUser code (UMC)

Tooltip associated with a Radio Button and/or Check Box control

A tooltip can be defined for the control and for each option. For example:
RADIO_MyRadioButton[1]..ToolTip = "Option #1"
WINDEVWindows MobileJavaUser code (UMC)

Tooltip associated with row in a Treeview control

For the TreeView controls, a tooltip can be defined for each one of the treeview elements (TreeAdd, TreeInsert and TreeModify).
WINDEVWindows MobileJavaUser code (UMC)

Tooltip associated with a Table control and with a column in a Table control

The window editor allows you to define a tooltip for a Table control and for each one of its columns. The tooltip associated with the Table control is displayed if no tooltip was defined for the column hovered by the mouse cursor.
WEBDEV - Server codeAjax

Tooltip associated with an element in a Site Map Path control

For the Site Map Path controls, the tooltip of each element found in the path is defined:
..ToolTip is used to find out and modify the tooltip of each element found in the site map path. For example:
SMP_MyPath[1]..ToolTip = "Tooltip element 1"
WINDEVWindows MobileJavaUser code (UMC)

Limits

WINDEVWindows Mobile ..ToolTip only applies to the windows and to the window controls (including the table columns and the table cells). This property cannot be used with the menus.
Java ..ToolTip applies to the following controls:
  • Button control.
  • Static control.
  • Edit control.
  • Image control.
  • Check Box control.
  • Radio Button control.
  • List Box control.
  • Combo Box control.
  • TreeView control.
  • Tab control.
  • Table control.
  • Table column control (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