VREdit
VisualuRuby(tmp) Reference
VREdit
Edit Control.
text
Gets Text in the control. Line break(\r\n) is translated by this method.
text=(str )
Sets Text in the control. Line break is translated by this method.
getSel
Returns [start_pos,end_pos] of the selected area.
setSel(st ,en ,noscroll =0 )
Sets the selected area specified by st as start point and en
as end point and Scrolls to show the area. When noscroll is 1,
it doesn't scroll.
setCaret(r )
Sets cursor point at r
replaceSel(newstr )
Replaces text in the selected area with newstr .
readonly=(b )
Sets readonly flag as boolean b
limit
Gets the length limit of this Editbox.
limit=(lmt )
Sets the length limit of this Editbox.
modified
Returns true if the editbox text is modified by user.
modified=(f )
Sets modified flag of the editbox.
cut
Cuts the selected area into clipboard.
copy
Copies the selected area into clipboard.
paste
Paste the clipboard text into the editbox.
clear
Clears selected area text.
Use cut method to set the text into clipboard.
undo
Undo the previous cut/copy/paste/clear action.
charFromPos(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 by Fixnum.
the character index starts from zero
Editboxes invoke the following method of parent window.
????_changed
This parent's method is fired when editbox text is modified.
VisualuRuby(tmp) Reference Index :
Project HomePage(English) :
Project HomePage(Japanese) :
Sourceforge vruby page
Generated at Sun Feb 24 01:29:22 +0900 2008