GetY (function) (Graph unit)

Language:
Русский
English

 GetY (function)     (Graph unit)


Returns Y coordinate of current pointer (CP).

Declaration

 function GetY: Integer;

Target

Real, Protected

Remarks

The value of GetY is relative to the dimensions of the active viewport, as the following examples illustrate.

  SetViewPort(0, 0, GetMaxX, GetMaxY, True);
  Moves CP to absolute (0, 0), and GetY returns a value of 0.

  MoveTo(5, 5);
  Moves CP to absolute (5, 5), and GetY returns a value of 5.

  SetViewPort(10, 10, 100, 100, True);
  Moves CP to absolute (10, 10), but GetY returns a value of 0.

  MoveTo(5, 5);
  Moves CP to absolute (15, 15), but GetY returns a value of 5.

Restrictions

Must be in graphics mode.

See Also

Sample Code

Тэги: GetY
| G+
Код для вставки: :: :: :: ::
Поделиться: // //