Nana C++ Library An open-source C++ framework project The Nana Programmer's Guide |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nana::gui::tabbar<typename Type> Description A tabbar widget is analogous to dividers in a notebook or the labels in a file cabinet . Model of Widget Window Public base classes class widget_object<widget_tag, DrawerTrigger>: public widget Template Parameter
Typedefs
Members
File nana/gui/widgets/tabbar.hpp Notes 1, The button_container is a member template of tabbar, it is used for identifing the buttons of toolbox of tabbar. The buttons of toolbox are scrolling button, list button and close button, only scrolling button is enabled by default, enable other buttons by employing the tabbar::toolbox member function. An example. typedef tabbar<int> tabbar_t; tabbar_object.toolbox(tabbar_t::button_container<tabbar_t::button_list, tabbar_t::button_close>(), true); Sets the list button and close button to be enabled. 2, The tabbar provides an event_trigger class for abstract event, such as selecting an item or closing an item. template<typename Tabbar> struct ext_event_type { typedef Tabbar tabbar; typedef typename tabbar::value_type value_type; nana::functor_group<void(tabbar&, value_type&)> add_tab; nana::functor_group<void(tabbar&, value_type&)> active; nana::functor_group<bool(tabbar&, value_type&)> remove; }; The add_tab() is invoked when a new item is being created. The select() methond is invoked when selects an item. The remove() method is invoked when closes an item and to stop closing the item by returning false. See also None. Move to The Nana Programmer's Guide Main Page |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||