GadgetWidth()

Syntax

Result = GadgetWidth(#Gadget [, Mode])
Description
Returns the width of the specified gadget.

Parameters

#Gadget The gadget to use.
Mode (optional) Can be one of the following value:
  #PB_Gadget_ActualSize  : returns the current width of the gadget, in pixels (default).
  #PB_Gadget_RequiredSize: returns the width needed to fully display the gadget, in pixels.

Return value

Returns the width of the gadget in pixels.

See Also

GadgetHeight(), GadgetX(), GadgetY(), ResizeGadget()

Supported OS

All

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