TLama

Untitled

Dec 18th, 2013
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.35 KB | None | 0 0
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. var
  3.   MousePos: TPoint;
  4. begin
  5.   MousePos := Chart1.ScreenToClient(Mouse.CursorPos);
  6.  
  7.   // in MousePos.X is horizontal position of the cursor relative to the chart, just like X in OnMouseMove
  8.   // in MousePos.Y is vertical position of the cursor relative to the chart, just like Y in OnMouseMove
  9. end;
Advertisement
Add Comment
Please, Sign In to add comment