Difference between revisions of "Lua:Class:Label"

From Cheat Engine
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Label Class''' (Inheritance GraphicControl->Control->Component->Object)
+
[[Category:Lua]]
  The Label class is a visual component that lets you display text
+
'''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'''(owner)  
+
'''createLabel(''owner'')''':
  Creates a Label class object which belongs to the given owner. Owner can be any object inherited from WinControl
+
Creates a Label class object which belongs to the given owner. Owner can be any object inherited from WinControl
  
  
 +
== Examples ==
 
<pre>
 
<pre>
Example:
 
 
 
local forms = createForm()
 
local forms = createForm()
 
local labels = createLabel(forms)
 
local labels = createLabel(forms)
 
control_setCaption(labels, "My first label")
 
control_setCaption(labels, "My first label")
 
</pre>
 
</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")


See also[edit]