AdvPolyList mouse right click

Hi!


When I click right mouse button over an item in AdvPolyList it fires the OnItemClickEvent. Even when I have popup menu assigned to the poly list - it first show me the popup and then fire an item click event. 

How can I avoid this behaviour?
How can I determined which item was clicked over popup?

Best regards,

Hi, 


We have improved this here and have implemented a right-click block on items.
The right-click will not trigger an OnItemClick event

To know which item has been right-clicked implement the OnMouseDown event on the list and lookup the item with the X and Y parameter:

procedure TForm1.AdvVerticalPolyList1MouseDown(Sender: TObject;
  Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  it := AdvVerticalPolyList1.List.ItemAtXY(X, Y);
end;

Kind Regards, 
Pieter

Thank you, it's perfect.