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

TStatusBar.OnHint

Event handler used to get the text for a hint displayed on the status bar control.

Declaration

Source position: comctrls.pp line 212

published property TStatusBar.OnHint : TNotifyEvent
  read FOnHint
  write FOnHint;

Description

OnHint is a TNotifyEvent property with the event handler signalled to get hint text displayed on the status bar control. It is called from the DoSetApplicationHint method (when assigned), and occurs when AutoHint is enabled and a custom hint action is passed to the ExecuteAction method. The handler can determine the content for the hint and the location where it is displayed. If the handler returns False, the value passed from the application is assigned to SimpleText (when SimplePanel is enabled), or used as the text for the first defined panel in Panels (when SimplePanel is disabled).

See also

TStatusBar.ShowHint

  

Enables Hint display for the control.

TStatusBar.DoHint

  

Displays the hint for the status bar.

TStatusBar.AutoHint

  

Indicates if a hint is automatically shown when the mouse hovers over the status bar.

TStatusBar.DoSetApplicationHint

  

DoSetApplicationHint - specifies a hint string and returns True if successful.

TStatusBar.ExecuteAction

  

ExecuteAction: if required action is a Hint-related, sets the Hint in place, otherwise calls inherited method.

TControl.Hint

  

The text to show in the Hint window for the control.