Hi!
I understand that Double Click event is processed in OnMouseDown event.
For TTrayIcon, both left and right double click actions call the OnDblClick().
For TPanel, only left double click action call the OnDblClick() unlike TTrayIcon.
Below code with TPanel works fine for me.
procedure TFormMain.Panel1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if ssDouble in Shift then
begin
if ssLeft in Shift then
ShowMessage('Panel Left Double')
else if ssRight in Shift then
ShowMessage('Panel Right Double');
end;
end;