VisualuRuby(tmp) Reference

VRListview

Coloring : swin class : vruby class

Class Hierarchy

Object
SWin::Window
VRWinComponent
VRControl
VRNotifyControl
VRListview

Including Modules

none

Child classes or Classes/Modules including this

none

vr/vrcomctl.rb

VRListview

Listview. Some features has not implemented yet.

Method

setViewMode(mode)
mode as viewmode. 0 for ICON, 1 for REPORT, 2 for SMALLICON and 3 for LIST
getViewMode
Returns the view mode.
iconview
Sets the view mode for Icon view.
reportview
Sets the view mode for Report view.
smalliconview
Sets the view mode for Small icon view.
listview
Sets the view mode for listing view.
setBkColor(color)
bkcolor=(color)
Sets the background color.
lvexstyle
lvexstyle=(style)
Gets/Sets Listview extended style. If you need style mask, use setListviewExStyle()
setListviewExStyle(style,mask=0xffffffff)
Sets Listview extended style using style mask.
insertColumn(column,text,width=50,format=0,textsize=title.size)
Inserts a new column specified by text, width and format into the index of column, which is started from 0. format means 0 for left-padded, 1 for right-padded, 2 for centred.
deleteColumn(column)
Deletes the column at the index of column
clearColumns
Deletes all columns.
countColumns
Counts the number of columns.
addColumn(text,width=50,format=0,textsize=title.size)
Adds a new column after the last column.
setImagelist(imagelist,itype=0)
Set imagelist for displaying icons of items. imagelist must be a kind of SWin::Imagelist. itype specifies the type of Imagelist. itype : 0 for normal icon, 1 for small icon (,2 for state icon).
setItemIconOf(hitem,img)
Sets image ids in a imagelist of the item. The imagelist is set by setImagelist method.
getItemIconOf(hitem)
Returns images id of the item.
getColumnWidthOf(column)
Returns the width of the column whose index is column.
setColumnWidthOf(column,width)
Sets the width of the column.
getColumnTextOf(column)
Returns the text of the column whose index is column.
setColumnTextOf(column,text)
Sets the text of the column.
getColumnFormatOf(column)
Returns the format of the column whose index is column. (see insertColumn about format)
setColumnFormatOf(column,format)
Sets the format of the column.
insertItem(index,texts,lparam=0,textsize=128)
Inserts a new item into the index of index.texts is an array of String which means [item_text, subitem_text, subitem2_text,...]. lparam is a 32bit value concerned with the item. textsize is the limit length of the item texts.
addItem(texts,lparam=0,textsize=128)
Adds a new item after the last item.
insertMultiItems(index,multitexts)
Inserts new items into the index of index. multitexts is an array which is the arguments of insertItem excluding index
deleteItem(idx)
Deletes an item at the index of idx.
clearItems
Deletes all items.
countItems
Counts the items.
hittest(x,y)
Inspect the item index which is at the co-ordinate(x,y)
hittest2(x,y)
Returns the item information which is at the co-ordinate(x,y). The information is the array [x,y,part,index,subitem]
getItemRect(idx)
Returns an co-ordinates array of integers [left,top,right,bottom]
getItemStateOf(idx)
Returns the item state at the index of idx. The state is 1 for forcused, 2 for selected, 3 for cut and 4 fordrophilited.
setItemStateOf(idx,state)
Sets the item state.
selectItem(idx,flag)
Change selected state of the item at the index of idx. If flag is true, the item is selected and if it's false the item is un-selected.
getNextItem(start,flags)
Searches for an item described by start and flags. flags is
focusedItem
Returns index of the focused item.
getItemTextOf(idx,subitem=0,textsize=128)
Retrieves the sub-text of the item (index idx ). subitem specifies the subitem number.
setItemTextOf(idx,subitem,text,textsize=text.size)
Sets the sub-text of the item.
getItemLParamOf(idx)
Gets the lParam of the item.
setItemLParamOf(idx,lparam)
Sets the lParam of the item.
selected?(idx)
Returns true if the item is selected.
focused?(idx)
Returns true if the item is focused.
eachSelectedItems
Yields each selected item index.
countSelectedItems()
Counts the selected items.
ensureVisible(i,partial=true)
Ensures the item(idx) is visible by scrolling.

Event handlers

????_itemchanged(idx,state)
fired when the item state is changed. This also means that this is fired after changing selected items. idx is the index of the item and state is the new state.
????_itemchanging(idx,state)
fired when the item state is changing.
????_columnclick(subitem)
fired when the column is clicked. subitem is the column index.
????_begindrag
????_beginrdrag

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