Difference between revisions of "Lua:createForm"

From Cheat Engine
Jump to navigation Jump to search
(Initial page creation.)
 
m (Syntax Highlighting.)
 
Line 21: Line 21:
  
 
===Examples===
 
===Examples===
<pre>
+
<syntaxhighlight lang="lua" line>
 
local form = createForm(false)
 
local form = createForm(false)
 
form.Caption = "My tool"
 
form.Caption = "My tool"
 
form.show()
 
form.show()
</pre>
+
</syntaxhighlight>
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
 +
 +
{{Creation}}

Latest revision as of 23:45, 26 June 2026

<> Lua API Reference

function createForm(visible OPTIONAL) : CEForm

Creates a CEForm window.

Forms are visible by default. Pass false when the layout must be configured before showing the form.

Function Parameters[edit]

Parameter Type Description
visible Boolean Optional. True by default; set to false to create the form hidden.

Returns[edit]

CEForm — The newly created form.

Examples[edit]

1 local form = createForm(false)
2 form.Caption = "My tool"
3 form.show()

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Basic Visual Controls

Text / Input Controls

Value / Progress Controls

Graphics / Resources

Strings / Streams

Timers / Hotkeys

Scanning / Found Lists

Other Creation Helpers