Difference between revisions of "Lua:Class:Label"
Jump to navigation
Jump to search
| Line 15: | Line 15: | ||
control_setCaption(labels, "My first label") | control_setCaption(labels, "My first label") | ||
</pre> | </pre> | ||
| + | |||
| + | |||
| + | {{LuaSeeAlso}} | ||
Revision as of 21:53, 19 March 2017
Label Class (Inheritance GraphicControl->Control->Component->Object)
The Label class is a visual component that lets you display text
createLabel(owner)
Creates a Label class object which belongs to the given owner. Owner can be any object inherited from WinControl
Example: local forms = createForm() local labels = createLabel(forms) control_setCaption(labels, "My first label")