Vcl.Forms.TApplication.OnShowHint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnShowHint: TShowHintEvent read FOnShowHint write FOnShowHint;

C++

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

Properties

Type Visibility Source Unit Parent
event public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TApplication

Description

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