Difference between revisions of "Lua:getMemoryViewForm"
Jump to navigation
Jump to search
m |
|||
| Line 1: | Line 1: | ||
[[Category:Lua]] | [[Category:Lua]] | ||
| − | '''function''' getMemoryViewForm() ''':''' | + | {{CodeBox|'''function''' getMemoryViewForm() ''':''' Form}} |
| − | Returns the main | + | Returns the main Memory View form object. |
| − | |||
| − | |||
| − | + | There can be multiple Memory View windows, but this function only returns the original/base Memory View form. The returned object can be accessed using the Form class methods and the methods of the classes it inherits from. | |
| − | == | + | ===Function Parameters=== |
| − | + | This function has no parameters. | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| + | ===Returns=== | ||
| + | Form — The main Memory View form object. | ||
| + | |||
| + | ===Examples=== | ||
| + | <pre> | ||
| + | local memoryView = getMemoryViewForm() | ||
| + | |||
| + | if memoryView ~= nil then | ||
| + | memoryView.show() | ||
| + | memoryView.bringToFront() | ||
| + | end | ||
| + | </pre> | ||
| + | |||
| + | <pre> | ||
| + | local memoryView = getMemoryViewForm() | ||
| + | |||
| + | if memoryView ~= nil then | ||
| + | print("Memory View caption: " .. tostring(memoryView.Caption)) | ||
| + | print("Visible: " .. tostring(memoryView.Visible)) | ||
| + | end | ||
| + | </pre> | ||
| + | |||
| + | <pre> | ||
| + | local memoryView = getMemoryViewForm() | ||
| + | |||
| + | if memoryView ~= nil and memoryView.isForegroundWindow() then | ||
| + | print("The main Memory View is currently focused") | ||
| + | end | ||
| + | </pre> | ||
| + | |||
| + | ===Notes=== | ||
| + | * This function returns the original/base Memory View form. | ||
| + | * It does not return additional Memory View windows that may have been opened. | ||
| + | * The returned object can be used like a Form object. | ||
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
| − | + | {{Forms}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 21:06, 24 June 2026
Returns the main Memory View form object.
There can be multiple Memory View windows, but this function only returns the original/base Memory View form. The returned object can be accessed using the Form class methods and the methods of the classes it inherits from.
Contents
Function Parameters
This function has no parameters.
Returns
Form — The main Memory View form object.
Examples
local memoryView = getMemoryViewForm() if memoryView ~= nil then memoryView.show() memoryView.bringToFront() end
local memoryView = getMemoryViewForm()
if memoryView ~= nil then
print("Memory View caption: " .. tostring(memoryView.Caption))
print("Visible: " .. tostring(memoryView.Visible))
end
local memoryView = getMemoryViewForm()
if memoryView ~= nil and memoryView.isForegroundWindow() then
print("The main Memory View is currently focused")
end
Notes
- This function returns the original/base Memory View form.
- It does not return additional Memory View windows that may have been opened.
- The returned object can be used like a Form object.