GadgetY()

Syntax

Result = GadgetY(#Gadget [, Mode])
Description
Returns the Y 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 Y position (in pixels) within its container, or window (default)
  #PB_Gadget_WindowCoordinate   : the absolute gadget Y position (in pixels) within the window.
  #PB_Gadget_ScreenCoordinate   : the absolute gadget Y 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 Y position relative to the gadgets parent or window in pixels.

See Also

GadgetX(), GadgetWidth(), GadgetHeight(), ResizeGadget()

Supported OS

All

<- GadgetX() - Gadget Index - GetActiveGadget() ->