vcl-dxlistview-a4973b14.md
The hint-related procedural type for list items.
TdxListViewInfoTipEvent = procedure(Sender: TdxCustomListView; AItem: TdxListItem; var AInfoTip: string) of object;
| Name | Type | Description |
|---|---|---|
| Sender | TdxCustomListView |
The List View control that raised the event.
| | AItem | TdxListItem |
The target list item.
| | AInfoTip | string |
The item hint.
|
The following OnInfoTip event handler displays a string stored in an item’s Data property in the hint:
procedure TForm1.dxListViewControl1InfoTip(Sender: TdxCustomListView;
AItem: TdxListItem; var AInfoTip: string);
begin
if AItem.Data <> nil then
try
AInfoTip := string(AItem.Data^);
except;
end;
end;
void __fastcall TForm1::dxListViewControl1InfoTip(TdxCustomListView *Sender,
TdxListItem *AItem, UnicodeString &AInfoTip)
{
if (AItem->Data != nullptr)
try
{
AInfoTip = *(UnicodeString *)AItem->Data;
}
catch(...)
{
}
}
The List View’s OnInfoTip event references the TdxListViewInfoTipEvent type.
See Also