GadgetX()

Syntax

Result = GadgetX(#Gadget [, Mode])
Description
Returns the X position of the specified gadget.

Parameters

#Gadget The gadget to use.
Mode (optional) Mode can be one of the following value:
  #PB_Gadget_ContainerCoordinate: the gadget X position (in pixels) within its container, or window (default)
  #PB_Gadget_WindowCoordinate   : the absolute gadget X position (in pixels) within the window.
  #PB_Gadget_ScreenCoordinate   : the absolute gadget X position (in pixels) in the screen.
                                  It can be useful to display something over the gadget like a floating window or a popup menu.

Return value

Returns the X position relative to the gadgets parent or window (in pixels).

See Also

GadgetY(), GadgetWidth(), GadgetHeight(), ResizeGadget()
<- GadgetWidth() - Gadget Index - GadgetY() ->