Create
This function creates a custom widget. Set the script parameter to your own custom script.
Syntax
- global Widget Create(string text, number x, number y, number width, number height, Widget parent, string scriptfile)
Parameters
- text: text to display on the widget, if applicable.
- x: X position of the widget, in logical units.
- y: Y position of the widget, in logical units.
- width: width of the widget, in logical units.
- height: height of the widget, in logical units.
- scriptfile: script file to use for drawing and events.
Returns
Returns a new widget.