|
Hi, recently found FLTK (and FLUID) and really like it. One thing as yet I don't understand but I believe it may be more about C++ and ObjectOrietation than anything else (I am an assembler programmer).
The code that FLUID produces is different from code I can find on the web.. eg
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 there are (at least) 2 different ways to code these calls. I am guessing the FLUID way is creating an instance of an Object (???) and the other way is not.
Anyone able to give me a quick heads up on what is expected. Many 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/f272846e-a6bd-41bc-a4a8-c05855b4da89n%40googlegroups.com.
[ Direct Link to Message ] | |