SG_ResizeGadget

Syntax:

SG_ResizeGadget(SG_GadgetID_L.l, Width_L.l, Height_L.l)

Parameters:

SG_GadgetID_L

=

The number of the gadget

State_L

=

the state of the gadget (0 or 1)

Width_L

=

the width of the gadget

Height_L

=

the height of the gadget


Description:

Resize the specified Gadget to the given dimensions. To ease the building of realtime resizeable Graphical User Interfaces (GUIs), #PB_Default (-1) can be passed as any parameter (Width or Height) and this parameter will not be changed. This is very handy because often the gadget should only change in width or in height.

[...]

SG_ResizeGadget(0, 300, #PB_Default) ; Only change the gadget width.


Example:


Remarks:



Supported OS:   Windows