TApplication.OnHint property
Event handler signalled when a hint is requested in the application.
Declaration
property OnHint: TNotifyEvent read FOnHint write FOnHint;Description
OnHint is a
TNotifyEvent property with the event handler
signalled when the value for the
Hint property is needed in the
application. It is signalled (when assigned) when a new value is assigned to
the Hint property, and occurs when the mouse is hovered over a control.
OnHint, and other application handlers using the ahtHint type, can be used to
override the value assigned to the Hint property. OnHint occurs before other
application handlers using the ahtHint handler type are notified.
OnHint can be implemented to provide hint text using any method needed for the
application; it does not have to use the Hint text for the hovered control.
If OnHint (or other handlers) are not assigned, a TCustomHintAction is created and executed to get the value for the Hint property. OnActionExecute can then be used to intercept and fulfill the request for Hint text.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
