AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Editores / Editor de proyectos
  • Overview
  • How to?
  • Customizing tooltips
  • Special case: Using an application window to customize tooltips
  • WLanguage functions and properties
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Overview
Tooltips are very useful for application users.
From version 26 onwards, sad tooltips are a thing of the past: use customized tooltips to display your messages. Several types of tooltips are available:
  • Standard tooltips:
    Standard tooltip
  • Skin template tooltips:
    Skin template tooltip
  • Custom style tooltips:
    Custom style tooltip
  • Tooltips customized via an application window.
Reminder The text displayed in the tooltip can be:
  • Entered 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.
  • Specified via the ToolTip property.
Remarks:
  • Custom tooltips are used for all tooltips in the application:
    • Control tooltips.
    • Automatic tooltips for Table and List controls (displayed if the text is not complete in the control, for example).
  • Custom tooltips are not used in the following cases:
    • Chart control tooltips.
    • Scrollbar tooltips.
  • If your users customize the tooltip text via the AAf, the custom text will be displayed in the custom tooltip.
How to?

Customizing tooltips

To customize tooltips in your application:
  1. Open the project description window. To do so, go to the "Proyecto" tab, "Proyecto" group, and click "Descripción".
  2. On the "Style" tab, specify the type of tooltip to be used in the project:
    Tooltip customization
    • Standard: tooltips are standard, displayed on a yellow bubble background.
    • Defined by template: the tooltips used are those present in the skin template used by the project..
    • Custom: the tooltip style editor is displayed to define customization options:
      Tooltip style
      You can customize:
      • The label displayed: font, size, shadow, color, etc.
      • Bubble frame: margins, background color, frame type, etc.
    • Window: You can then select a window in your project to display help in the form of a tooltip.. This option allows you to create all possible UIs.
  3. Validate the project description window. All tooltips displayed by your application will use the selected look.
Note: The tooltips can be animated.. To activate this animation:
  1. Display the project description window: under the "Proyecto" pane, in the "Proyecto" group, click on "Descripción"..
  2. On the "Advanced" tab, click "Animación de controles".
  3. In "Tooltip", select and configured the desired animation.
  4. Validate.
  5. Validate the project description window.

Special case: Using an application window to customize tooltips

WINDEV allows using a window of the application to display the content of the tooltips.
In this case:
  • Only the declaration code of global variables of the window is executed.
  • The declaration code of global variables of a window must contain the following code:
    PROCEDURE DeclarationWindowGlobalVariables(TooltipText, SourceControl)
    STC_TOOLTIP = TooltipText
    where:
    • TooltipText is the text to be displayed in the tooltip. This text must be displayed in a Static Text control in the window (for example, STC_TOOLTIP).
    • SourceControl is an optional parameter that contains the name of the control for which the tooltip is displayed.
  • The option "Adaptar tamaño según el contenido" ("General" tab of the description window) must be checked.
  • The window must use a background image with the clipping option enabled ("Recortar ventana (utiliza el modo de transparencia de la imagen de fondo)" in the "Image tab of the description window).
  • To display text with effects in the tooltip, you can, for example: This information must be specified in the tooltip of the control (e.g., in the "Help" tab of the control description window, or via the ToolTip property of the control).
  • The "Modifier" pane contains specific options for windows displayed in tooltip mode. These options are as follows:
    • "Tooltip mode": Activates or deactivates the tooltip display mode.. If this mode is enabled, the other options of the tooltip mode will be taken into account.
    • "Bubble mode: X offset": Sets the X offset of the window (displayed as a bubble) relative to the mouse cursor. The mouse cursor corresponds to the point (0,0).
    • "Bubble mode: Y offset": Sets the Y offset of the window (displayed as a bubble) relative to the mouse cursor. The mouse cursor corresponds to the point (0,0).
    • "Bubble mode: Hot spot": Defines the point in the window (displayed as a bubble) that will be displayed at the position of the mouse cursor. This option allows creating speech bubble-like tooltips.
WLanguage functions and properties
Several WLanguage functions and properties can be used to configure tooltips.
The following functions and properties can be used on custom tooltips:
  • WLanguage functions:
    ShowToolTipActiva o desactiva el mecanismo de visualización de los tooltip de los controles.
    ToolTipDelaySe utiliza para modificar:
    • el tiempo de espera antes de mostrar los tooltip.
    • la duración de la visualización de los tooltip.
    TooltipMaxWidthModifica la anchura máxima de los tooltip.
  • WLanguage properties:
    AutomaticTooltipThe AutomaticTooltip property enables or disables automatic tooltips on List Box, Table and TreeView Table controls.
    ToolTipLa propiedad ToolTip obtiene y cambia el texto que se muestra en un tooltip. Este tooltip puede asociarse a:
    • un control de una ventana o página,
    • New in SaaS
      un control en un reporte. En este caso, el tooltip solo será visible en el visor de reportes.
      Nota: Esta funcionalidad solo está disponible a partir de WINDEV Suite SaaS 2025 - Update 3.
Versión mínima requerida
  • Versión 26
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 24/05/2025

Señalar un error o enviar una sugerencia | Ayuda local