POChecker: show popup menu in Graphical Statistics form only on right mouse button click

git-svn-id: trunk@52392 -
This commit is contained in:
maxim 2016-05-26 13:28:45 +00:00
parent c51bc87bab
commit d467aa5554

View File

@ -151,6 +151,8 @@ var
AStat: TStat; AStat: TStat;
CurrScreenPoint: TPoint; CurrScreenPoint: TPoint;
begin begin
if Button = mbRight then
begin
anItem := Listview.GetItemAt(X, Y); anItem := Listview.GetItemAt(X, Y);
if Assigned(anItem) then if Assigned(anItem) then
begin begin
@ -160,6 +162,7 @@ begin
CurrScreenPoint := ListView.ClientToScreen(Point(X, Y)); CurrScreenPoint := ListView.ClientToScreen(Point(X, Y));
ContextPopupMenu.PopUp(CurrScreenPoint.X, CurrScreenPoint.Y); ContextPopupMenu.PopUp(CurrScreenPoint.X, CurrScreenPoint.Y);
end; end;
end;
end; end;
procedure TGraphStatForm.POEditorMenuItemClick(Sender: TObject); procedure TGraphStatForm.POEditorMenuItemClick(Sender: TObject);