[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TApplication.OnHint

Event handler signalled when a hint is requested in the application.

Declaration

Source position: forms.pp line 1761

public property TApplication.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

TApplication.Hint

  

The current Hint text active for the application.

TApplication.AddOnHintHandler

  

Adds an application Hint handler.

TApplication.RemoveOnHintHandler

  

Removes an application Hint handler.

TApplication.OnActionExecute

  

Default handler for unhandled Actions.

TApplicationHandlerType

  

Types of Application notification handlers.

TCustomHintAction

  

Represents a standard action used to get a Hint value.


Version 4.0 Generated 2025-05-03 Home