TdxFormattedTextPropertiesBase.OnShowTextHint Event
Allows you to modify a hint for a text range enclosed between [HINT] and [/HINT] tags before the hint is displayed.
Declaration
property OnShowTextHint: TdxShowTextHintEvent read; write;
Remarks
DevExpress controls that support formatted messages, labels, and UI element captions display a hint when a user positions the mouse pointer over a text range enclosed between [HINT] and [\HINT] tags.
You can handle the OnShowTextHint event to change the displayed hint message depending on conditions in your application.
Event Occurrence
The OnShowTextHint event occurs every time a text hint is about to appear.
Note
Text hints can appear only if the ShowTextHint property is set to True (default).
Event Parameters
Sender- Allows you to access the control or UI element that raised the text hint display event.
AArgs- Allows you to access information about the text hint display event that occurred. You can use the
AArgs.Hint property to change the hint text.
Refer to TdxShowTextHintEvent and TdxShowTextHintEventArgs type descriptions for detailed information on all options available within an OnShowTextHint event handler.
Related Mouse Movement Events
In addition, you can handle the following events to track mouse movement between hint-marked text ranges:
- OnHintedTextMouseEnter
- Allows you to execute custom code when the mouse pointer moves over a hint-marked text range.
- OnHintedTextMouseLeave
- Allows you to execute custom code when the mouse pointer leaves a hint-marked text range.