Difference between revisions of "Lua:Class:Memo"

From Cheat Engine
Jump to navigation Jump to search
(Methods)
Line 1: Line 1:
'''Memo Class''': (Inheritance: Edit->[[WinControl]]->[[Control]]->[[Component]]->[[Object]])
+
'''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
 
createMemo(owner): Creates a Memo class object which belongs to the given owner. Owner can be any object inherited from WinControl
  
Line 12: Line 12:
 
===Methods===
 
===Methods===
 
   append(string)
 
   append(string)
  clear()
 
 
   getLines() : returns a Strings class
 
   getLines() : returns a Strings class
 
   getWordWrap()
 
   getWordWrap()

Revision as of 22:48, 20 February 2015

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: " " " " ...