Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TAdvOutlookList
Associating an object with an AdvOutlookList item

procedure TForm1.AdvOutlookList1ItemClick(Sender: TObject; Item: POGLItem; Column: Integer);
begin
 // show the value of the object assigned to the item clicked
 showmessage(inttostr(integer(item.ItemObject)));
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  with advoutlooklist1.AddGroup('group') do
  begin
    AddChild.Add('item 1');
    // assign the object to the item
    ChildOGLItem[0].ItemObject := TObject(1);
    // assign the object to the item
    AddChild.Add('item 2');
    ChildOGLItem[1].ItemObject := TObject(2);
  end;
end;