class Iup::Tabs

A container for multiple widgets, placing the widgets in layers with a single layer visible. The user can change the visible layer by selecting a tab.

Example

The following creates two tabs, each containing a VBox. The callback reports when the tabs are changed:

Iup::Tabs.new(vbox1, vbox2) do |t|
  t.tabchangepos_cb = ->(n, o) {
    puts "Selected tab was #{o} and is now #{n}"
  }
  t.tabtitle(0, 'Tab A')
  t.tabtitle(1, 'Tab B')
end

See also: ZBox