Difference between revisions of "Lua:Class:Panel"
Jump to navigation
Jump to search
m (→Examples: Syntax Highlight.) |
|||
| Line 97: | Line 97: | ||
===Examples=== | ===Examples=== | ||
| − | < | + | <syntaxhighlight lang="lua" line> |
-- Create a panel and set some properties | -- Create a panel and set some properties | ||
local form = createForm() | local form = createForm() | ||
| Line 106: | Line 106: | ||
panel.BevelWidth = 2 | panel.BevelWidth = 2 | ||
panel.FullRepaint = true | panel.FullRepaint = true | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
Latest revision as of 00:21, 27 June 2026
Panel Class: (Inheritance: WinControl->Control->Component->Object)
Represents a Panel control that can be used as a container for other controls in Cheat Engine forms.
Contents
Creation[edit]
createPanel(owner)
Creates a Panel object which belongs to the given owner. Owner can be any object inherited from WinControl.
Properties[edit]
| Property | Type | Description |
|---|---|---|
| Alignment | alignment | Specifies the alignment of the panel within its parent. |
| BevelInner | panelBevel | Specifies the inner bevel style of the panel. |
| BevelOuter | panelBevel | Specifies the outer bevel style of the panel. |
| BevelWidth | Integer | Width of the bevel. |
| FullRepaint | Boolean | If true, the panel is fully repainted when updated. |
Methods[edit]
| Method | Parameters | Returns | Description |
|---|---|---|---|
| getAlignment | None | alignment | Gets the alignment property. |
| setAlignment | alignment | None | Sets the alignment property. |
| getBevelInner | None | panelBevel | Gets the inner bevel style. |
| setBevelInner | panelBevel | None | Sets the inner bevel style. |
| getBevelOuter | None | panelBevel | Gets the outer bevel style. |
| setBevelOuter | panelBevel | None | Sets the outer bevel style. |
| getBevelWidth | None | Integer | Gets the bevel width. |
| setBevelWidth | Integer | None | Sets the bevel width. |
| getFullRepaint | None | Boolean | Gets the FullRepaint property. |
| setFullRepaint | Boolean | None | Sets the FullRepaint property. |
Examples[edit]
1 -- Create a panel and set some properties
2 local form = createForm()
3 local panel = createPanel(form)
4 panel.Align = "alTop"
5 panel.BevelInner = "bvRaised"
6 panel.BevelOuter = "bvLowered"
7 panel.BevelWidth = 2
8 panel.FullRepaint = true