Difference between revisions of "Lua:Class:Memo"

From Cheat Engine
Jump to navigation Jump to search
Line 1: Line 1:
 +
[[Category:Lua]]
 
'''Memo Class''': (Inheritance: [[Edit]]->[[WinControl]]->[[Control]]->[[Component]]->[[Object]])
 
'''Memo Class''': (Inheritance: [[Edit]]->[[WinControl]]->[[Control]]->[[Component]]->[[Object]])
  
Line 33: Line 34:
  
  
----
+
== See also ==
 
 
 
* [[Lua|Lua Functions and Classes]]
 
* [[Lua|Lua Functions and Classes]]

Revision as of 11:52, 19 March 2017

Memo Class: (Inheritance: Edit->WinControl->Control->Component->Object)

createMemo(owner): Creates a Memo class object which belongs to the given owner. Owner can be any object inherited from WinControl

Properties

 Lines: Strings - Strings object for this memo
 WordWrap: boolean - Set if words at the end of the control should go to the next line
 WantTabs: Boolean - Set if tabs will add a tab to the memo. False if tab will go to the next control
 WantReturns: Boolean - Set if returns will send a event or not
 Scrollbars: Scrollstyle - Set the type of ascrollbars to show (ssNone, ssHorizontal, ssVertical, ssBoth,
   ssAutoHorizontal, ssAutoVertical, ssAutoBoth)

Methods

 append(string)
 getLines() : returns a Strings class
 getWordWrap()
 setWordWrap(boolean)
 getWantTabs()
 setWantTabs(boolean)
 getWantReturns()
 setWantReturns(boolean)
 getScrollbars()
 setScrollbars(scrollbarenumtype) : 
   Sets the scrollbars. Horizontal only takes affect when wordwrap is disabled
   valid enum types: 
   ssNone : No scrollbars
   ssHorizontal: Has a horizontal scrollbar
   ssVertical: Has a vertical scrollbar
   ssBoth: Has both scrollbars
   ssAutoHorizontal: Same as above but only shows when there actually is something to scroll for
   ssAutoVertical: " " " " ...
   ssAutoBoth: " " " " ...


See also