mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 07:56:11 +02:00
POChecker: show popup menu in Graphical Statistics form only on right mouse button click
git-svn-id: trunk@52392 -
This commit is contained in:
parent
c51bc87bab
commit
d467aa5554
@ -151,14 +151,17 @@ var
|
||||
AStat: TStat;
|
||||
CurrScreenPoint: TPoint;
|
||||
begin
|
||||
anItem := Listview.GetItemAt(X, Y);
|
||||
if Assigned(anItem) then
|
||||
if Button = mbRight then
|
||||
begin
|
||||
anIndex := anItem.Index;
|
||||
AStat := FPoFamilyStats.Items[anIndex];
|
||||
Fn := AStat.PoName;
|
||||
CurrScreenPoint := ListView.ClientToScreen(Point(X, Y));
|
||||
ContextPopupMenu.PopUp(CurrScreenPoint.X, CurrScreenPoint.Y);
|
||||
anItem := Listview.GetItemAt(X, Y);
|
||||
if Assigned(anItem) then
|
||||
begin
|
||||
anIndex := anItem.Index;
|
||||
AStat := FPoFamilyStats.Items[anIndex];
|
||||
Fn := AStat.PoName;
|
||||
CurrScreenPoint := ListView.ClientToScreen(Point(X, Y));
|
||||
ContextPopupMenu.PopUp(CurrScreenPoint.X, CurrScreenPoint.Y);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user