Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomTrackBarProperties.OnGetPositionHint Event

In This Article

Enables you to dynamically control the visibility and content of a hint window shown in response to thumb position changes and mouse hover events.

#Declaration

Delphi
property OnGetPositionHint: TcxTrackBarGetCustomHintEvent read; write;

#Remarks

This event is fired only when the ShowPositionHint property is set to True.

Sender specifies the track bar editor.

APosition returns the current thumb position (the track bar’s Position property value).

AHintText specifies a hint text. By default, it is a string representation of APosition. You can adjust the hint text as required.

ACanShow specifies the hint window’s visibility. Pass False as this parameter to prohibit the hint window from being displayed.

AIsHintMultiLine specifies if the AHintText spans across multiple lines. Pass True as the AIsHintMultiLine parameter to vertically size the hint window to fit the entire hint text. If you inserted carriage returns and line feeds (Char(13) + Char(10)) to the hint text to manually wrap it into multiple lines, the AIsHintMultiLine parameter is ignored.

See Also