Lua:Class:MemoryView
Jump to navigation
Jump to search
The Memoryview class represents a memory viewer window.
A new memory viewer window can be created with createMemoryView. This created window will not receive debug events. To access the main memory viewer window, use getMemoryViewForm.
Inheritance
| Class | Inherits From | Description |
|---|---|---|
| Memoryview | Form | Represents a memory viewer window. |
| Form | ScrollingWinControl | Base class for forms and windows. |
| ScrollingWinControl | CustomControl | Base class for controls with scrolling support. |
| CustomControl | WinControl | Base class for custom windowed controls. |
| WinControl | Control | Base class for controls that can receive focus and contain child controls. |
| Control | Component | Base class for visible GUI controls. |
| Component | Object | Base class for components. |
| Object | None | Base class for Lua-exposed objects. |
Creation
Creates a new memory viewer window.
The created memory viewer window will not receive debug events. Use getMemoryViewForm to get the main memory viewer window.
Function Parameters
This function has no parameters.
Returns
MemoryView — The created memory viewer window.
Properties
| Property | Type | Description |
|---|---|---|
| DisassemblerView | DisassemblerView | The disassembler view object of this memory viewer. |
| HexadecimalView | HexadecimalView | The hexadecimal view object of this memory viewer. |
Methods
This class does not define additional methods.
Inherited methods are available through Form and its parent classes.
Examples
Create a new Memoryview window
1 local memoryView = createMemoryView()
2
3 memoryView.Caption = "Custom Memory Viewer"
4 memoryView.show()
Get the main Memoryview window
1 local memoryView = getMemoryViewForm()
2
3 print(memoryView.ClassName)
Access the DisassemblerView
1 local memoryView = getMemoryViewForm()
2
3 local disassemblerView = memoryView.DisassemblerView
4
5 print(disassemblerView.ClassName)
Access the HexadecimalView
1 local memoryView = getMemoryViewForm()
2
3 local hexadecimalView = memoryView.HexadecimalView
4
5 print(hexadecimalView.ClassName)
Create a separate Memoryview and access its views
1 local memoryView = createMemoryView()
2
3 memoryView.Caption = "Secondary Memory Viewer"
4
5 local disassemblerView = memoryView.DisassemblerView
6 local hexadecimalView = memoryView.HexadecimalView
7
8 print(disassemblerView.ClassName)
9 print(hexadecimalView.ClassName)
10
11 memoryView.show()
Use the main Memoryview safely
1 local memoryView = getMemoryViewForm()
2
3 if memoryView ~= nil then
4 print("Main memory viewer: " .. tostring(memoryView.Caption))
5 end
Close a created Memoryview
1 local memoryView = createMemoryView()
2
3 memoryView.Caption = "Temporary Memory Viewer"
4 memoryView.show()
5
6 -- Later:
7 memoryView.destroy()