Stan wrote:
>>     If the discussion is about the philosophy of begin()/end(),
>>     that's a different thing which is kinda intrinsic to fltk's
>>     design, and it can be liked or hated, apparently. This was
>>     gone over earlier in this thread (which started 4 months ago)
> 
> What is often lost in this discussion is the fact that
>   begin();  new Thing(..);  new Thing(); end()
> is NOT exactly the same as
>   add(new Thing(..)); add(new Thing(..));

        I'm probably forgetting something about FLTK2; what's the difference?

        In FLTK2 the begin() isn't implied the way it is in FLTK1,
        so the following should be OK:

#include <fltk/run.h>
#include <fltk/Window.h>
#include <fltk/Button.h>
int main() {
    fltk::Window win(720,486);
    win.add(new fltk::Button(10,10,120,25,"Button"));
    win.show();
    return(fltk::run());
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to