Good evening,
I want to display a red Box into a black one, but when I run the program, the
black is the only one displayed ( stack
)
what to do then?
this is my programme
#include <cstdlib>
#include <FL/Fl.H>
#include <FL/Enumerations.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Window.H>
int main () {
Fl_Window *Win = new Fl_Window(0,0,500,300,"");
Win->begin();
Win->color(FL_WHITE);
Win->fullscreen(); // making the window in fullscreen
int w=Win->w(); // getting the width of the window
int h=Win->h(); // getting the height of the window
Fl_Box box(FL_FLAT_BOX,w/2,h/2,100,100,"");
Fl_Box box1(FL_FLAT_BOX,w/2-50,h/2-50,200,200,"");
box.color(FL_RED);
box1.color(FL_BLACK);
Win->end();
Win->show();
return(Fl::run());
delete Win;
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk