Even though Fl_Box and fltk::Box sound similar, they are totally different!
In FLTK 1, "Fl_Box" is a widget. It draws a box or frame, but has no other
function. The FLTK 2 equivalent is "fltk::Widget"
In FLTK 2, "fltk::Box" describes how a box is drawn. The rough equivalent in
FLTK 1 is "Fl_Boxtype"
Matthias
On 10.05.2011, at 19:40, Leonid wrote:
> Hello!
> I badly speak english
> I the beginning programmer
> I want to copy in FLTK-2 ready code FLTK-1
> I replace Fl_Box on fltk:: Box I receive many errors
>
> [code]
> decl {\#include <fltk/Box.h>} {public
> }
>
> class EnvelopeFreeEdit {open : {public fltk::Box}
> } {
> Function {EnvelopeFreeEdit(int x,int y, int w, int h, const
> char*):fltk::Box(x,y,w,h,label)} {open
> } {
> code {env=NULL;
> pair=NULL;} {}
> }
> Function {init(EnvelopeParams *env_)} {open
> } {
> code {env=env_;
> oldx=-1;
> currentpoint=-1;
> cpx=0;
> lastpoint=-1;} {}
> }
> Function {setpair(fltk::Box *pair_)} {open
> }
>
> bla-bla-bla
>
> return(1);} {}
> }
> decl {fltk::Box *pair;} {}
> decl {EnvelopeParams *env;} {}
> decl {int oldx,oldy;} {}
> decl {int currentpoint,cpx,cpdt;} {}
> decl {int lastpoint;} {public
> }
> }
> [/code]
>
> What to do???
>
> _______________________________________________
> fltk mailing list
> [email protected]
> http://lists.easysw.com/mailman/listinfo/fltk
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk