Back to Devexpress

TdxListViewInfoTipEvent Type

vcl-dxlistview-a4973b14.md

latest1.5 KB
Original Source

TdxListViewInfoTipEvent Type

The hint-related procedural type for list items.

Declaration

delphi
TdxListViewInfoTipEvent = procedure(Sender: TdxCustomListView; AItem: TdxListItem; var AInfoTip: string) of object;

Parameters

NameTypeDescription
SenderTdxCustomListView

The List View control that raised the event.

| | AItem | TdxListItem |

The target list item.

| | AInfoTip | string |

The item hint.

|

Remarks

The following OnInfoTip event handler displays a string stored in an item’s Data property in the hint:

delphi
procedure TForm1.dxListViewControl1InfoTip(Sender: TdxCustomListView;
  AItem: TdxListItem; var AInfoTip: string);
begin
  if AItem.Data <> nil then
    try
        AInfoTip := string(AItem.Data^);
    except;
    end;
end;
cpp
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

dxListView Unit