Derived from: public MGroup, public BControl
Declared in: <TabGroup.h>
The TabGroup is class that can contain multiple children, but displays only one of them at a time. The user can choose which one by clicking on the corresponding tab at the top of the TabGroup.
TabGroup(minimax mpm,char *arg=0 ...) TabGroup(char *arg=0 ...) TabGroup(BMessage*)The arguments presented to the constructor are an optional minimax structure, followed by alternating pairs of char* and MView*. The char* will be the label of the tab, and the following MView* will be the MView that's activated by this tab. The list should be NULL-terminated.
virtual ~TabGroup()Cleans up after the TabGroup
static BArchivable *Instantiate(BMessage *archive)Not yet implemented
virtual void ActivateTab(int index)Activates the tab at index index.
virtual long Archive(BMessage *archive, bool deep=true) constNot yet implemented
virtual void KeyDown(const char *bytes, int32 numbytes)Augments BControl::KeyDown to allow navigating from tab to tab.
virtual void MouseDown(BPoint point)Overrides the BControl version of MouseDown, to handle the activation of tabs with the mouse.
virtual void SetEnabled(bool enabled)Disables or enables the TabGroup. Currently, when the TabGroup is disabled, this means that its tabs can no longer be operated, but the controls contained in the tab are not affected. This behaviour may change in the future.
Copyright © 1997 Marco Nelissen (marcone@xs4all.nl) All rights reserved.
Be, BeOS, BeBox, BeWare, GeekPort, the Be logo, the BeOS logo, roColour, Beatware and Beatware painter are trademarks or registered trademarks of their respective owners.