VisualuRuby(tmp) Reference

VRText

Coloring : swin class : vruby class

Class Hierarchy

Object
SWin::Window
VRWinComponent
VRControl
VRStdControl
VREdit
VRText

Including Modules

none

Child classes or Classes/Modules including this

VRRichedit

vr/vrcontrol.rb

VRText

Mutiline Editbox. Parent class is VREdit

Methods

scrollTo(line.col)
Scrolls line lines vertically and col columns horizontally.
visibleStartLine
Returns line number of the first visible line in the editbox.
countLines
Returns max line number.
getLineLengthOf(ln)
Returns length of the ln-th line.
getLineTextOf(ln,maxlen)
Returns text of ln-th line. If maxlen is specified, returned text is limited in its length.
scrollup
Scrolls line up in the editbox.
scrolldown
Scrolls line down in the editbox.
scrollupPage
Scrolls page up in the editbox.
scrolldownPage
Scrolls page down in the editbox.
scrolltocaret
Scrolls the caret into view in the editbox.
char2line(ptr)
Returns the index of the line that contains the specified character index.
line2char(ln)
Returns the character index of a line.
getCurrentLine
Returns the current line index.
charLineFromPos(x,y)
retrieves information about the character closest to a specified point in the client area. ((x)) is the horizontal coordinate. ((y)) is the vertical coordinate. the return value specifies character index and line index by Array. first item means character index. second item means line index. the character index and line index start from zero

VisualuRuby(tmp) Reference Index : Project HomePage(English) : Project HomePage(Japanese) : Sourceforge vruby page
Generated at Sun Feb 24 01:30:11 +0900 2008