VisualuRuby(tmp) Reference

VRToolbar

Coloring : swin class : vruby class

Class Hierarchy

Object
SWin::Window
VRWinComponent
VRControl
VRNotifyControl
VRToolbar

Including Modules

WConst

Child classes or Classes/Modules including this

none

vr/contrib/toolbar.rb

VRToolbar

This class represents Toolbar.

Methods

insertButton(i,name,style=TBSTYLE_BUTTON)
Inserts a button as i-th button. style can be a constant in WConst such as TBSTYLE_BUTTON (default), TBSTYLE_SEP (separator), TBSTYLE_CHECK,...
addButton(style)
Adds a button at last of the buttons.
deleteButton(i)
Deletes a button at i-th.
clearButtons
Deletes all buttons.
countButtons
Counts buttons.
setImagelist(imglist)
Sets the imagelist for the toolbar. imglist must be an instance of SWin::Imagelist.
setParent(hwnd)
Sets the window to nofify command messages.
autoSize
Resizes toolbar.
indeterminateOf(i,bool=true)
Sets the indeterminate state of the i-th button.
commandToIndex(id)
Retrieves the index number for the button whose id is id. This id is used in WM_COMMAND messages.
enableButton(i,bool=true)
Enables or disables the i-th button.
getButtonStateOf(id)
Gets the state of the button whose id is id.
setButtonStateOf(i,state)
Sets the state of the button whose id is id.
setButtons(buttons)
Sets the array of button to a tool bar at once. button must be an array of [name,style]
enumButtons
Yields all toolbar buttons which are instance of VRToolbar::VRToolbarButton.

Event Handler

????_clicked
Fired when the button clicked.

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