VisualuRuby(tmp) Reference

VRTabControl

Coloring : swin class : vruby class

Class Hierarchy

Object
SWin::Window
VRWinComponent
VRControl
VRNotifyControl
VRTabControl

Including Modules

VRParent

Child classes or Classes/Modules including this

VRTabbedPanel

vr/vrcomctl.rb

VRTabControl

Tabs. This class doesn't have a function to show/hide controls according to the selected tab. For that function VRTabbedPanel class is provided below.

Methods

insertTab(index,text,textmax=text.size,lparam=0)
Inserts a new tab named text with lparam at index-th. index is ordinal number for tabs.
clearTabs
Deletes all tabs.
deleteTab(idx)
Deletes a tab at index
countTabs
Counts tabs in the control.
selectedTab
Returns the selected tab's index.
selectTab(idx)
Selects the tab at idx
setImagelist(imagelist)
Sets an imagelist for the tabs.
setTabSize(width,height)
Sets each tab size.
getTabRect(i)
Returns the client area of the tab at idx as an array of [x,y,w,h].
adjustRect(x,y,w,h,flag=false)
Adjusts a rectangle coodinates for tabcontrol's clientarea which is excluded tab buttons area. flag means the direction of adjusting. adjustRect(0,0,10,10,false) returns a leftsided rectangle below the tab buttons.
getTabTextOf(idx)
Gets a title text of tab at idx.
setTabTextOf(idx,text)
Sets a title text of tab at idx as text.
getTabImageOf(idx)
Gets a image id in the imagelist for tab atidx.
setTabImageOf(idx,image)
Sets a image id into image in the imagelist for tab atidx.
getTabLParamOf(idx)
Gets lparam value of tab atidx.
setTabLParamOf(idx,lparam)
Sets lparam value of tab atidx as lparam.

Event Handlers

????_selchanged
Fired when the selected tab changed. To get current tab id, use selectedTab method.

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