Checking if right mouse button pressed lazarus / 8-Other ---------------------------------------------------------------------- daz · 2008-02-15 23:03 Well, I don't see an event on the panel, so how can I check if the user right clicks something like a tpanel? ---------------------------------------------------------------------- Zaher · 2008-02-16 00:45 Check "OnMouseDown" the "Button" param. ---------------------------------------------------------------------- daz · 2008-02-16 04:37 Ok, but I'm not familiar with the TMouseButton thing; what are they (like for left/right)? (btw, the wiki sucks :/) ---------------------------------------------------------------------- OnixJr · 2008-02-16 13:11 To test, insert in OnMouseDown event: Code: [Select] procedure TForm1.Panel1MouseDown(Sender: TObject; Button: TMouseButton;   Shift: TShiftState; X, Y: Integer); begin   If Button = mbLeft then     ShowMessage('Left Button') else     If Button = mbMiddle then       ShowMessage('Midlle Button') else         If Button = mbRight then           ShowMessage('Right Button'); end;