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…')
 
Line 5: Line 5:
 
'''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
 +
 +
 +
<pre>
 +
Example:
 +
 +
local forms = createForm()
 +
local labels = createLabel(forms)
 +
control_setCaption(labels, "My first label")
 +
</pre>

Revision as of 06:57, 14 April 2012

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


Example:

local forms = createForm()
local labels = createLabel(forms)
control_setCaption(labels, "My first label")