procedure MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
var pt: TPoint;
begin
Windows.GetCursorPos(pt);
FMenu.Popup(pt.X, pt.Y);
end
Mouse.CursorPos.X, Mouse.CursorPos.Y
Powered by: 博客园 Copyright © 2024 colincode Powered by .NET 9.0 on Kubernetes