API:Vcl.AppEvnts.TApplicationEvents.OnShowHint

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

property OnShowHint: TShowHintEvent read FOnShowHint write FOnShowHint;

C++

__property OnShowHint;

Propriétés

Type Visibilité  Source Unité  Parent
event published
Vcl.AppEvnts.pas
Vcl.AppEvnts.hpp
Vcl.AppEvnts TApplicationEvents

Description

Se produit quand l'application va afficher un conseil dans une fenêtre de conseil.

Vcl.AppEvnts.TApplicationEvents.OnShowHint hérite de Vcl.AppEvnts.TCustomApplicationEvents.OnShowHint. Tout le contenu en-dessous de cette ligne se réfère à Vcl.AppEvnts.TCustomApplicationEvents.OnShowHint.

Se produit quand l'application va afficher un conseil dans une fenêtre de conseil.

L'événement OnShowHint permet d'écrire un gestionnaire d'événement qui modifie l'aspect et le comportement des conseils.

Le paramètre HintStr est le texte du conseil. Pour obtenir ce texte pour un contrôle particulier, appelez la fonction GetLongHint ou GetShortHint en affectant le résultat à HintStr. Vous pouvez modifier le contenu de cette chaîne si vous voulez modifier le texte.

Utilisez le paramètre CanShow pour permettre ou empêcher l'affichage du conseil d'aide. Si CanShow est à true, le conseil d'aide s'affiche. Si CanShow est à false, le conseil d'aide n'apparaît pas.

Remarque :  Appelez la méthode CancelDispatch à partir d'un gestionnaire d'événement OnShowHint pour éviter que l'application n'envoie l'événement à n'importe quel autre objet d'événements d'application.

Voir aussi