Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Procedure: GetPoint(Var X: Double; Var Y: Double; Hint: String): Integer;


API Call:

Code Block
languagedelphi
titleScripting
linenumberstrue
collapsetrue
var
  x, y: double;

begin
  if getpoint(x,y, 'Click a point') = 1 then
    showmessage('Clicked at ' + floattostr(x) + ', ' + floattostr(y))
  else
    showmessage('Canceled');
end;