Difference between revisions of "Lua:Class:Panel"
Jump to navigation
Jump to search
(5 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | '''Panel Class''': (Inheritance: [[WinControl]]- | + | [[Category:Lua]] |
+ | '''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. | ||
− | createPanel(owner) | + | ===Creation=== |
+ | <pre> | ||
+ | createPanel(owner) | ||
+ | </pre> | ||
+ | Creates a Panel object which belongs to the given owner. | ||
+ | Owner can be any object inherited from WinControl. | ||
===Properties=== | ===Properties=== | ||
− | + | {|width="85%" cellpadding="10%" cellspacing="0" border="0" | |
− | + | !align="left"|Property | |
− | + | !align="left"|Type | |
− | + | !style="width: 80%;background-color:white;" align="left"|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=== | ===Methods=== | ||
− | + | {|width="85%" cellpadding="10%" cellspacing="0" border="0" | |
− | + | !align="left"|Method | |
− | + | !align="left"|Parameters | |
− | + | !align="left"|Returns | |
− | + | !style="width: 80%;background-color:white;" align="left"|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=== | ||
+ | <pre> | ||
+ | -- Create a panel and set some properties | ||
+ | local form = createForm() | ||
+ | local panel = createPanel(form) | ||
+ | panel.Align = "alTop" | ||
+ | panel.BevelInner = "bvRaised" | ||
+ | panel.BevelOuter = "bvLowered" | ||
+ | panel.BevelWidth = 2 | ||
+ | panel.FullRepaint = true | ||
+ | </pre> | ||
+ | |||
+ | {{LuaSeeAlso}} |
Latest revision as of 00:44, 11 July 2025
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]
-- Create a panel and set some properties local form = createForm() local panel = createPanel(form) panel.Align = "alTop" panel.BevelInner = "bvRaised" panel.BevelOuter = "bvLowered" panel.BevelWidth = 2 panel.FullRepaint = true