VisualuRuby(tmp) Reference

VRListbox

Coloring : swin class : vruby class

Class Hierarchy

Object
SWin::Window
VRWinComponent
VRControl
VRStdControl
VRListbox

Including Modules

none

Child classes or Classes/Modules including this

none

vr/vrcontrol.rb

VRListbox

Listbox. Listbox has multi strings to select.

Methods

addString(idx,str)
Adds str String at the idx. When idx is omitted, str is added at the bottom.
deleteString(idx)
Deletes string at idx
countStrings
Returns the count of its strings.
clearStrings
Deletes all strings.
eachString
Yields each string.
setListStrings(strarray)
Sets array of string ( strarray ) as the listbox strings.
selectedString
Returns the selected index.
select(idx)
Selects idx-th string.
getTextOf(idx)
Retrieves the text of idx-th string.
setDir(fname,opt=0)
Sets the filenames specified by fname to the listbox. opt specifies the attributes of the files to be added.
findString(findstr,start=0)
Finds findstr in the listbox strings and returns the its index. start specifies the index to start finding.
getDataOf(idx)
Retrieves the 32bit value associated with the idx-th string.
setDataOf(idx,data)
Associates the 32bit value with the idx-th string.

Event handlers

????_selchanged
Fired when the selected string is changed.

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