Show: Delphi C++
Display Preferences

Vcl.AppEvnts.TApplicationEvents.OnHint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnHint: TNotifyEvent read FOnHint write FOnHint;

C++

__property OnHint;

Properties

Type Visibility Source Unit Parent
event published
Vcl.AppEvnts.pas
Vcl.AppEvnts.hpp
Vcl.AppEvnts TApplicationEvents

Description

Occurs when the mouse pointer moves over a control or menu item that can display a Help Hint.

Vcl.AppEvnts.TApplicationEvents.OnHint inherits from Vcl.AppEvnts.TCustomApplicationEvents.OnHint. All content below this line refers to Vcl.AppEvnts.TCustomApplicationEvents.OnHint.

Occurs when the mouse pointer moves over a control or menu item that can display a Help Hint.

Write an OnHint event handler to perform special processing when the mouse pauses over a control or menu item whose Hint property is not an empty string (' "" ').

A common use of the OnHint event is to display the value of a control or menu item's Hint property as the text of a status bar (TStatusBar). The Hint property of a control can specify both a short Help Hint and a (usually) longer hint that appears elsewhere because of code in an OnHint event handler.

Note: Call the CancelDispatch method from an OnHint event handler to prevent the application from forwarding the event to any other application events objects.
Tip: Component writers can respond to the automatically-fired THintAction action in a component's ExecuteAction method rather than relying on an OnHint event handler.

OnHint is an event handler of type TNotifyEvent.

See Also

Code Examples


Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance