Difference between revisions of "Lua:Class:Label"
Jump to navigation
Jump to search
(Created page with ''''Label Class''' (Inheritance GraphicControl->Control->Component->Object) The Label class is a visual component that lets you display text '''createLabel'''(owner) Create…') |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | '''Label Class''' (Inheritance GraphicControl- | + | [[Category:Lua]] |
− | + | '''Label Class''' (Inheritance ''[[Lua:Class:GraphicControl|GraphicControl]]''->''[[Lua:Class:Control|Control]]''->''[[Lua:Class:Component|Component]]''->''[[Lua:Class:Object|Object]]'') | |
+ | The Label class is a visual component that lets you display text | ||
− | '''createLabel''' | + | '''createLabel(''owner'')''': |
− | + | Creates a Label class object which belongs to the given owner. Owner can be any object inherited from WinControl | |
+ | |||
+ | |||
+ | == Examples == | ||
+ | <pre> | ||
+ | local forms = createForm() | ||
+ | local labels = createLabel(forms) | ||
+ | control_setCaption(labels, "My first label") | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | {{LuaSeeAlso}} |
Latest revision as of 01:59, 25 January 2018
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
Examples[edit]
local forms = createForm() local labels = createLabel(forms) control_setCaption(labels, "My first label")