Hello all
im trying to do simple thing
placing a button on top of box , this box is one on the two parts of a tile
object i did it with the fluid tool
the tile is working great but as you can see the button can't be moved with the
right tile when i resize it what im doing wrong here ?
here is the code :
simple_test1.cpp
---------------------------
// generated by Fast Light User Interface Designer (fluid) version 1.0109
#include "simple_test1.h"
Fl_Double_Window* make_window() {
Fl_Double_Window* w;
{ Fl_Double_Window* o = new Fl_Double_Window(400, 283);
w = o;
{ Fl_Tile* o = new Fl_Tile(10, 5, 380, 260);
o->box(FL_FLAT_BOX);
o->color((Fl_Color)5);
{ Fl_Box* o = new Fl_Box(10, 5, 190, 260);
o->box(FL_FLAT_BOX);
o->color((Fl_Color)30);
} // Fl_Box* o
{ Fl_Box* o = new Fl_Box(200, 5, 190, 260);
o->box(FL_FLAT_BOX);
o->color((Fl_Color)20);
} // Fl_Box* o
{ Fl_Button* o = new Fl_Button(265, 40, 100, 110);
o->color((Fl_Color)177);
} // Fl_Button* o
o->end();
} // Fl_Tile* o
o->end();
} // Fl_Double_Window* o
return w;
}
simple_test2.h
-----------------------------------------------
#ifndef simple_test1_h
#define simple_test1_h
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Tile.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Button.H>
Fl_Double_Window* make_window();
#endif
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk