VisualuRuby(tmp) Reference

VRTabbedPanel

Coloring : swin class : vruby class

Class Hierarchy

Object
SWin::Window
VRWinComponent
VRControl
VRNotifyControl
VRTabControl
VRTabbedPanel

Including Modules

VRMessageHandler VRParent

Child classes or Classes/Modules including this

none

vr/vrcomctl.rb

VRTabbedPanel

This is a class utilizing VRTabControl. On this control, each tab has a VRPanel and be shown/hidden automatically according to the selected tab.

Class method

auto_panelresize(flag)
Resize panels on the tabs automatically when this control resized.

Methods

setupPanels(arg-1,arg-2,arg-3,....)

Creates tabs each titled arg-n if args are String. When arg-n is array of [title, contorl-class, control-name], Creates control and relates with the tab. Use like follows.

class Panel1 < VRPanel
  include VRContainersSet
  ...
end
class Panel2 < VRPanel
  ...
end
...
setupPanels(["tab-1",Panel1,"panel1"],["tab-2",Panel2,"panel2"])
send_parent2(idx,controlname,eventname)
Sets to send to its parent an event of control named controlname on the panel at idx.

Attribute(s)

panels
An array that contains panels for each tab. panels[i] means a panel concerned with the tab at i.

Event Handlers

Same as VRTabControl. VRTabbedPanel#selchanged is already defined, so you need to call super when you override this method.


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