Module ...

Module that handles message history ina mouse wheel scrollable zone

Functions

_M:call (str, ...) Appends text to the log This method is set as the call methamethod too, this means it is usable like this:
log = LogDisplay.new(...)
log("foo %s", s)
_M:empty () Clear the log
_M:init (x, y, w, h, max, fontname, fontsize, color, bgcolor) Creates the log zone
_M:resize (x, y, w, h) Resize the display area
_M:scrollUp (i) Scroll the zone


Functions

_M:call (str, ...)
Appends text to the log This method is set as the call methamethod too, this means it is usable like this:
log = LogDisplay.new(...)
log("foo %s", s)

Parameters

  • str:
  • ...:
_M:empty ()
Clear the log
_M:init (x, y, w, h, max, fontname, fontsize, color, bgcolor)
Creates the log zone

Parameters

  • x:
  • y:
  • w:
  • h:
  • max:
  • fontname:
  • fontsize:
  • color:
  • bgcolor:
_M:resize (x, y, w, h)
Resize the display area

Parameters

  • x:
  • y:
  • w:
  • h:
_M:scrollUp (i)
Scroll the zone

Parameters

  • i: number representing how many lines to scroll

Valid XHTML 1.0!