Difference between revisions of "Lua:Class:Label"

From Cheat Engine
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
[[Category:Lua]]
 
[[Category:Lua]]
'''Label Class''' (Inheritance GraphicControl->Control->Component->Object)
+
'''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
 
  
 +
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)

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]