wxRuby Documentation Home

# Wx::PanelTabView

The PanelTabView is responsible for input and output on a Panel.

## Derived from

TabView

Object

## See also

TabView overview, TabView

## Methods

- PanelTabView.new
- PanelTabView#add_tab_window
- PanelTabView#clear_windows
- PanelTabView#get_current_window
- PanelTabView#get_tab_window
- PanelTabView#show_window_for_tab

### PanelTabView.new

PanelTabView.new(%(arg-type)Panel% panel, Integer style = TAB_STYLE_DRAW_BOX TAB_STYLE_COLOUR_INTERIOR)

Constructor. panel should be a TabbedPanel or TabbedDialog: the type will be checked by the view at run time.

style may be a bit list of the following:

TAB_STYLE_DRAW_BOX | Draw a box around the view area. Most commonly used for dialogs.
TAB_STYLE_COLOUR_INTERIOR | Draw tab backgrounds in the specified colour. Omitting this stylewill ensure that the tab background matches the dialog background.

### PanelTabView#add_tab_window

add_tab_panel(%(arg-type)Integer% id, Window window)

Adds a window to the view. The window is associated with the tab identifier, and will be shown or hidden as the tab
is selected or deselected.

### PanelTabView#clear_windows

clear_windows(%(arg-type)Boolean% deleteWindows = true)

Removes the child windows from the view. If deleteWindows is true, the windows will be deleted.

### PanelTabView#get_current_window

Panel get_current_window()

Returns the child window currently being displayed on the tabbed panel or dialog box.

### PanelTabView#get_tab_window

Window get_tab_window(%(arg-type)Integer% id)

Returns the window associated with the tab identifier.

### PanelTabView#show_window_for_tab

show_window_for_tab(%(arg-type)Integer% id)

Shows the child window corresponding to the tab identifier, and hides the previously shown window.

[This page automatically generated from the Textile source at 2023-06-09 00:45:30 +0000]