ResizeScreenGadget()

Syntax

ResizeScreenGadget(#ScreenGadget, x, y, Width, Height)
Description
Resize the specified gadget to the given position and dimensions.

Parameters

#Gadget The gadget to resize.
x, y, Width, Height The new position and dimensions of the gadget. To ease the building of real-time resizable Graphical User Interfaces (GUIs), #PB_Ignore can be passed as any parameter (x, y, Width or Height) and this parameter will not be changed.

Return value

None.

Example

  [...]

  ResizeScreenGadget(0, #PB_Ignore, #PB_Ignore, 300, #PB_Ignore) ; Only change the gadget width.

Supported OS

All

<- RenderScreenGadgets() - ScreenGadget Index - ResizeScreenWindow() ->