WindowX()

Syntax

Result = WindowX(#Window [, Mode])
Description
Returns the x position on the screen of the given window.

Parameters

#Window The window to use.
Mode (optional) The mode used to calculate the x position of the window. It can be one of the following value:
  #PB_Window_FrameCoordinate: x position of the window, including borders (default).
  #PB_Window_InnerCoordinate: x position of the window inner area (where gadget can be added),
                              excluding borders.

Return value

Returns the x position (from the left) on the screen (in pixels) of the given window.

See Also

OpenWindow(), WindowY()

Supported OS

All

<- WindowWidth() - Window Index - WindowY() ->