Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXTabBook.h
1 /********************************************************************************
2 * *
3 * T a b B o o k W i d g e t *
4 * *
5 *********************************************************************************
6 * Copyright (C) 1997,2022 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU Lesser General Public License as published by *
10 * the Free Software Foundation; either version 3 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public License *
19 * along with this program. If not, see <http://www.gnu.org/licenses/> *
20 ********************************************************************************/
21 #ifndef FXTABBOOK_H
22 #define FXTABBOOK_H
23 
24 #ifndef FXTABBAR_H
25 #include "FXTabBar.h"
26 #endif
27 
28 namespace FX {
29 
30 
48 class FXAPI FXTabBook : public FXTabBar {
49  FXDECLARE(FXTabBook)
50 protected:
51  FXTabBook(){}
52 private:
53  FXTabBook(const FXTabBook&);
54  FXTabBook& operator=(const FXTabBook&);
55 public:
56  long onPaint(FXObject*,FXSelector,void*);
57  long onFocusNext(FXObject*,FXSelector,void*);
58  long onFocusPrev(FXObject*,FXSelector,void*);
59  long onFocusUp(FXObject*,FXSelector,void*);
60  long onFocusDown(FXObject*,FXSelector,void*);
61  long onFocusLeft(FXObject*,FXSelector,void*);
62  long onFocusRight(FXObject*,FXSelector,void*);
63  long onCmdOpenItem(FXObject*,FXSelector,void*);
64 public:
65 
67  FXTabBook(FXComposite* p,FXObject* tgt=nullptr,FXSelector sel=0,FXuint opts=TABBOOK_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=DEFAULT_SPACING,FXint pr=DEFAULT_SPACING,FXint pt=DEFAULT_SPACING,FXint pb=DEFAULT_SPACING);
68 
75  virtual void setCurrent(FXint index,FXbool notify=false);
76 
78  virtual void layout();
79 
81  virtual FXint getDefaultWidth();
82 
84  virtual FXint getDefaultHeight();
85  };
86 
87 }
88 
89 #endif
The tab bar layout manager arranges tab items side by side, and raises the active tab item above the ...
Definition: FXTabBar.h:53
Base composite.
Definition: FXComposite.h:32
Definition: FX4Splitter.h:28
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:134
The tab book layout manager arranges pairs of children; the even numbered children (0...
Definition: FXTabBook.h:48

Copyright © 1997-2022 Jeroen van der Zijp