procedure TEMapTree.MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
var
Pt: TPoint;
begin
if mbRight = Button then
begin
if PopupMenu.Items.Find(Tree_RButtonSelect).Checked then
Perform(wm_Lbuttondown, 0, (y shl 16) + x);
Pt := ClientToScreen(Point(X,Y));
PopupMenu.Popup(Pt.X,Pt.Y);
end;
inherited;
end;