On 27.04.2012, at 21:51, Matthias Melcher wrote:
>
> On 27.04.2012, at 21:22, fltkCoder wrote:
>
>> Yes but the tabs are connected to the window. And the wizard just jumps
>> windows.
>>
>> Here is an example of what I mean.
>>
>>
>> http://i1071.photobucket.com/albums/u511/fltkCoder/window.png
>>
>
> Like this? Open
Accidentally clicked Send ;-)
test.fl - use Fluid to open and generate c++ code:
# data file for the Fltk User Interface Designer (fluid)
version 1.0300
header_name {.h}
code_name {.cxx}
Function {make_window()} {open
} {
Fl_Window {} {open
xywh {499 241 499 482} type Double visible
} {
Fl_Wizard myWizard {open
xywh {24 24 256 271} box UP_BOX
} {
Fl_Button {} {
label A
xywh {44 48 204 212} labelsize 148
}
Fl_Button {} {
label B
xywh {48 48 204 212} labelsize 148 hide
}
Fl_Button {} {
label C
xywh {48 52 204 212} labelsize 148 hide
}
Fl_Button {} {
label D
xywh {44 52 204 212} labelsize 148 hide
}
}
Fl_Button {} {
label A
callback {myWizard->value(0);}
xywh {320 28 63 20}
}
Fl_Button {} {
label B
callback {myWizard->value(1);}
xywh {324 84 63 20}
}
Fl_Button {} {
label C
callback {myWizard->value(2);}
xywh {328 148 63 20}
}
Fl_Button {} {
label D
callback {myWizard->value(3);}
xywh {328 204 63 20}
}
}
}
Function {main(int argc, char **argv)} {open selected return_type int
} {
code {Fl_Window *win = make_window();
win->show(argc, argv);
Fl::run();} {}
}
---
test.h
// generated by Fast Light User Interface Designer (fluid) version 1.0300
#ifndef test_h
#define test_h
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Wizard.H>
extern Fl_Wizard *myWizard;
#include <FL/Fl_Button.H>
Fl_Double_Window* make_window();
int main(int argc, char **argv);
#endif
---
test.cxx
// generated by Fast Light User Interface Designer (fluid) version 1.0300
#include "test.h"
Fl_Wizard *myWizard=(Fl_Wizard *)0;
static void cb_A(Fl_Button*, void*) {
myWizard->value(0);
}
static void cb_B(Fl_Button*, void*) {
myWizard->value(1);
}
static void cb_C(Fl_Button*, void*) {
myWizard->value(2);
}
static void cb_D(Fl_Button*, void*) {
myWizard->value(3);
}
Fl_Double_Window* make_window() {
Fl_Double_Window* w;
{ Fl_Double_Window* o = new Fl_Double_Window(499, 482);
w = o;
{ myWizard = new Fl_Wizard(24, 24, 256, 271);
myWizard->box(FL_UP_BOX);
{ Fl_Button* o = new Fl_Button(44, 48, 204, 212, "A");
o->labelsize(148);
} // Fl_Button* o
{ Fl_Button* o = new Fl_Button(48, 48, 204, 212, "B");
o->labelsize(148);
o->hide();
} // Fl_Button* o
{ Fl_Button* o = new Fl_Button(48, 52, 204, 212, "C");
o->labelsize(148);
o->hide();
} // Fl_Button* o
{ Fl_Button* o = new Fl_Button(44, 52, 204, 212, "D");
o->labelsize(148);
o->hide();
} // Fl_Button* o
myWizard->end();
} // Fl_Wizard* myWizard
{ Fl_Button* o = new Fl_Button(320, 28, 63, 20, "A");
o->callback((Fl_Callback*)cb_A);
} // Fl_Button* o
{ Fl_Button* o = new Fl_Button(324, 84, 63, 20, "B");
o->callback((Fl_Callback*)cb_B);
} // Fl_Button* o
{ Fl_Button* o = new Fl_Button(328, 148, 63, 20, "C");
o->callback((Fl_Callback*)cb_C);
} // Fl_Button* o
{ Fl_Button* o = new Fl_Button(328, 204, 63, 20, "D");
o->callback((Fl_Callback*)cb_D);
} // Fl_Button* o
o->end();
} // Fl_Double_Window* o
return w;
}
int main(int argc, char **argv) {
Fl_Window *win = make_window();
win->show(argc, argv);
Fl::run();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk