GUI Help > General > setGadget
setGadget
setGadget handle gadget, int x, int y, int width, int height
Description: Combines the functions of moveGadget and resizeGadget in one function.
Return Value:
Parameters:
gadget | Handle to the gadget.
x | New X position of gadget.
y | New Y position of gadget
width | New width of gadget in pixels
height | New height of gadget in pixels.
Remarks: It is faster to use one call to setGadget than seperate calls to resizeGadget and moveGadget.
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)