Gadget only API -> ChangeSize
This function is used to set the height and width of the gadget window.
ChangeSize(newWidth, newHeight)
| Parameter |
Description |
Range |
Type |
| newWidth |
The width (in pixels) of the gadget window. |
>=0 |
int |
| newHeight |
The height (in pixels) of the gadget window. |
>=0 |
int |
This example contains an icon which is located within the gadget window, that when clicked upon will cause the height and width of the gadget window to decrease by 10px every 50 milliseconds, until the gadget window is completely closed.
| | |