Difference between revisions of "Lua:Class:Label"
								
								Jump to navigation
				Jump to search
				
				
		
 					
								
							
		m (moved Label to Lua:Class:Label)  | 
				|||
| Line 1: | Line 1: | ||
[[Category:Lua]]  | [[Category:Lua]]  | ||
| − | '''Label Class''' (Inheritance GraphicControl-  | + | '''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>  | <pre>  | ||
| − | |||
| − | |||
local forms = createForm()  | local forms = createForm()  | ||
local labels = createLabel(forms)  | local labels = createLabel(forms)  | ||
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")