Skip to main content

TdxCustomMapItemLayer.ItemHint Property

Specifies the default hint message for the map layer’s items.

Declaration

property ItemHint: string read; write;

Property Value

Type
string

Remarks

This property provides the default value for the GetItemHint function. In addition to normal strings, you can include a map item’s attribute values in the message. To accomplish this, add required attribute names and enclose each one with braces {}. The names and braces will be automatically replaced with the corresponding attribute values on displaying the hint message. If a certain attribute cannot be found by the specified name, this name with enclosing braces are passed as is into the message.

The following code shows how to set the ItemHint property to make hint messages display the location name and altitude associated with map items and stored in map item attributes called Name and Altitude.

<dxMapControlItemLayer>.ItemHint := '{Name}, Altitude: {Altitude} m';
See Also