VisualuRuby(tmp) Reference

VRCombobox

Coloring : swin class : vruby class

Class Hierarchy

Object
SWin::Window
VRWinComponent
VRControl
VRStdControl
VRCombobox

Including Modules

none

Child classes or Classes/Modules including this

VREditCombobox

vr/vrcontrol.rb

VRCombobox

Combobox is like Listbox, but Only one string is selected.

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 combobox 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 combobox. opt specifies the attributes of the files to be added.
findString(findstr,start=0)
Finds findstr in the combobox 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:05 +0900 2008