Difference between revisions of "Lua:Class:Label"

From Cheat Engine
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->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>
 +
local forms = createForm()
 +
local labels = createLabel(forms)
 +
control_setCaption(labels, "My first label")
 +
</pre>
 +
 
 +
 
 +
{{LuaSeeAlso}}

Latest revision as of 20:59, 24 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]