comparison src/uicmd.cc @ 2052:89af8495455f

remove use of Fl_Pack to avoid resizing issues CustGroup is split into CustGroupHorizontal and CustGroupVertical. CustGroupVertical is then used to replace Fl_Pack for TopGroup.
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Thu, 26 May 2011 21:12:33 +0200
parents 47c0550792b2
children 416d99f6eb81
comparison
equal deleted inserted replaced
2051:e1c1d44e56c4 2052:89af8495455f
81 }; 81 };
82 82
83 /* 83 /*
84 * Allows fine control of the tabbed interface 84 * Allows fine control of the tabbed interface
85 */ 85 */
86 class CustTabs : public CustGroup { 86 class CustTabs : public CustGroupHorizontal {
87 int tab_w, tab_h, tab_n; 87 int tab_w, tab_h, tab_n;
88 Fl_Wizard *Wizard; 88 Fl_Wizard *Wizard;
89 int tabcolor_inactive, tabcolor_active, curtab_idx; 89 int tabcolor_inactive, tabcolor_active, curtab_idx;
90 public: 90 public:
91 CustTabs (int ww, int wh, int th, const char *lbl=0) : 91 CustTabs (int ww, int wh, int th, const char *lbl=0) :
92 CustGroup(0,0,ww,th,lbl) { 92 CustGroupHorizontal(0,0,ww,th,lbl) {
93 tab_w = 80, tab_h = th, tab_n = 0, curtab_idx = -1; 93 tab_w = 80, tab_h = th, tab_n = 0, curtab_idx = -1;
94 tabcolor_active = FL_DARK_CYAN; tabcolor_inactive = 206; 94 tabcolor_active = FL_DARK_CYAN; tabcolor_inactive = 206;
95 Fl_Box *w = new Fl_Box(0,0,0,0,"i n v i s i b l e"); 95 Fl_Box *w = new Fl_Box(0,0,0,0,"i n v i s i b l e");
96 w->box(FL_NO_BOX); 96 w->box(FL_NO_BOX);
97 resizable(0); 97 resizable(0);
172 a_Timeout_add(0.0, a_UIcmd_close_all_bw, NULL); 172 a_Timeout_add(0.0, a_UIcmd_close_all_bw, NULL);
173 ret = 1; 173 ret = 1;
174 } 174 }
175 } 175 }
176 176
177 return (ret) ? ret : CustGroup::handle(e); 177 return (ret) ? ret : CustGroupHorizontal::handle(e);
178 } 178 }
179 179
180 /* 180 /*
181 * Create a new tab with its own UI 181 * Create a new tab with its own UI
182 */ 182 */