> If yours look different in some way, esp. the 'L' argument,
> it might be an inconsistency with fluid's code generator.
>
> But be sure you're using the second fluid file I sent,
> ie. the message that starts off saying:
>
There's only a slight difference in the way my files look and how you say they
should look. Could this be the problem?
My .h file generated by Fluid is -------------------------
// generated by Fast Light User Interface Designer (fluid) version 1.0011
#ifndef hover_h
#define hover_h
#include <FL/Fl.H>
#include <FL/Fl_Group.H>
class MyGroup : public Fl_Group {
public:
MyGroup(int X,int Y,int W,int H,const char *L=0);
int handle(int e);
};
#include <FL/Fl_Double_Window.H>
extern MyGroup *group;
#endif
--------------------------------------------------------------------
My .cxx file generated by Fluid is ---------------------------------
// generated by Fast Light User Interface Designer (fluid) version 1.0011
#include "hover.h"
MyGroup::MyGroup(int X,int Y,int W,int H,const char *L=0):Fl_Group(X,Y,W,H,L) {
// empty
}
int MyGroup::handle(int e) {
int ret = Fl_Group::handle(e);
switch (e) {
case FL_ENTER:
label("At The Moment");
window()->redraw();
ret = 1; // FL_ENTER: must return(1) to receive FL_MOVE
break;
case FL_LEAVE:
label("ATM");
window()->redraw();
ret = 1;
break;
}
return(ret);
}
MyGroup *group=(MyGroup *)0;
int main(int argc, char **argv) {
Fl_Double_Window* w;
{ Fl_Double_Window* o = new Fl_Double_Window(465, 385);
w = o;
{ MyGroup* o = group = new MyGroup(25, 40, 295, 275, "ATM");
o->box(FL_FLAT_BOX);
o->color(41);
o->labelfont(1);
o->labelsize(19);
o->end();
}
o->end();
}
w->show(argc, argv);
return Fl::run();
}
----------------------------------------------------------------
I tried changing *L=0) to *L) in the constructor. Compiling resulted in 19
errors.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk