Class TabItem

Summary

#
  This class represents a single pane in a {TabSet}.  {Components}
  can be added to the {TabItem} using {Container}'s {add} method.
  They are then displayed and accept input when that TabItem
  is selected.

  Components added to the {TabItem} are positioned relative to
  the position and size of the parent {TabSet}.  Therefore for
  example {set_pos("50%", "50%")} refers to the centre of the
  {TabSet} rather than the centre of the screen.  The components
  also inherit any window attributes of the {TabSet}, such as
  font, colour and so on.

Superclasses:
Container

Package:
(main)
File:
tabitem.icn
Methods:
check_label, display_tab, is_hidden, is_unhidden, set_label, set_parent_tab_set

Methods inherited from Component:
accepts_tab_focus, attrib, clear_accepts_tab_focus, clear_draw_border, clear_is_shaded, clear_no_updates, do_shading, error, get_parent_Dialog, get_parent_buffer_win, get_parent_win, got_focus, handle_notify, is_shaded, is_unshaded, lost_focus, parse_pos, redisplay, set_abs_coords, set_abs_size, set_accepts_tab_focus, set_align, set_attribs, set_attribs_list, set_draw_border, set_is_shaded, set_no_updates, set_parent_Dialog, set_pos, set_size, set_tooltip, toggle_draw_border, toggle_is_shaded, unique_end, unique_start

Methods inherited from Container:
add, display, final_setup, finally, firstly, generate_all_components, generate_components, get_cbwin_reference, get_components, get_cwin_reference, get_h_reference, get_visible_reference, get_w_reference, get_x_reference, get_y_reference, handle_event, in_region, resize, set_components

Methods inherited from MetaComponent:
set_fields

Methods inherited from Ticker:
is_ticking, retime_ticker, set_ticker, stop_ticker, tick

Fields:
label, label_w, label_x, line_no, parent_tab_set

Source code.

Details
Constructor

TabItem(label, label_x, line_no, label_w, parent_tab_set)

Methods:

check_label()


display_tab()


is_hidden()

This method overrides is_hidden in class Component

is_unhidden()

This method overrides is_unhidden in class Component

set_label(x)

#
  Set the {TabItem}'s label.


set_parent_tab_set(x)


Fields:
label

label_w

label_x

line_no

parent_tab_set


This page produced by UniDoc on 2021/04/15 @ 23:59:54.