From XE3 API Documentation
Jump to: navigation, search


property OnShowHint: TShowHintEvent read FOnShowHint write FOnShowHint;


__property TShowHintEvent OnShowHint = {read=FOnShowHint, write=FOnShowHint};


Type Visibility Source Unit Parent
event public
Vcl.Forms TApplication


Occurs when the application is about to display the Hint window for a Help Hint.

Write an OnShowHint event handler to change the appearance and behavior of Help Hints.

In the event handler, set the HintStr parameter to change the text of the Help Hint. To obtain the text of a Hint for a particular control, call the GetLongHint or GetShortHint function, and assign the result to HintStr.

Use the CanShow parameter to permit or prevent the Help Hint from displaying.

Note: You can also respond to this event using the TApplicationEvents component, which allows you to assign an event handler using the IDE.

See Also

Code Examples