Alternative Widget Constructor
Create a widget by specifying the top-left corner position, width & height
This is a simple example for an alternative Widget constructor. Instead of specifying the top, bottom, left and right positions of the widget the alternative constructor takes the top, left, width and height of the button as arguments.
newWidget – There are 10 input arguments: The function returns the Widget object. |