|
|
Hi, new to FLTK (and FLUID) and really like it. Have figured out a few things but not sure why there is syntax variations between what FLUID produces and example code I can find. I do not know much about C++ or ObjectOrientation (I am an assembler programmer) but think it might be more about that then anything else. I've posted the following example:-
int main(){ Fl_Window fltkWindow(300, 400, "fltk Window"); Fl_Button fltkButton (25, 20, 70, 50, "button1"); Fl_Button *fluidButton = new Fl_Button(25, 80, 70, 50, "button2"); fltkWindow.end(); // Not really required
Fl_Window *fluidWindow = new Fl_Window(245, 255, "fluidWindow"); Fl_Group* o = new Fl_Group(25, 20, 180, 220); { new Fl_Button(25, 20, 70, 50, "button1"); new Fl_Button(25, 80, 70, 50, "button2"); new Fl_Button(25, 140, 70, 50, "button3"); } fluidWindow->end(); fltkWindow.show(); fluidWindow->show(); return Fl::run(); }
It seems you can code (at least) 2 different ways. I am guessing FLUID is creating instances or a class while the other way is not. Can anyone give me a quick idea of what's going on. Thanks in advance. Cheers Roger
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/bc27b053-76f4-439f-8c53-5e741cb378dcn%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |