Re: [fltk.general] Widget not being shown

2011-02-24 Thread Edzard Egberts
Phillip Wu schrieb: > Hi, > I have created my own class: > class tag: public Fl_Widget { > private: >char text[80]; >Fl_Color tcolor; >int tfont; >int tfontsize; >int posx; >int posy; > >void draw(){ > printf("tag draw of %s\n",text); // trace > fl_color(tcolor

[fltk.general] Widget not being shown

2011-02-24 Thread Phillip Wu
Hi, I have created my own class: class tag: public Fl_Widget { private: char text[80]; Fl_Color tcolor; int tfont; int tfontsize; int posx; int posy; void draw(){ printf("tag draw of %s\n",text); // trace fl_color(tcolor); fl_font(tfont,tfontsize); fl_draw(text,posx,p

Re: [fltk.general] Problem Building 1.3.0rc3

2011-02-24 Thread Mike Werner
> Mike wrote > > > > I've run into a problem trying to build Version 1.3.0rc3 using MVC++ 6.0 in > > Windows XP SP3 (32 bit). Looks like all the .cxx files are compiling o.k. > > except for FL_Text_Display, where I get 12 errors like the one below. > > > > C:\Program Files\fltk-1.3.0rc3\src\Fl_Te

Re: [fltk.general] widget visibility and events in 1.3

2011-02-24 Thread corvid
> Matthias wrote: > On 23.02.2011, at 21:22, corvid wrote: > > > I wrote: > >> If the widget flag enum says: > >> > >>INVISIBLE = 1<<1, ///< the widget is not drawn but can > >> receive events > >> > >> then why is visibility required in: > >> > >> unsigned int takesevents() c

Re: [fltk.general] Problem Building 1.3.0rc3

2011-02-24 Thread Brian Tilley
Mike wrote > > I've run into a problem trying to build Version 1.3.0rc3 using MVC++ 6.0 in > Windows XP SP3 (32 bit). Looks like all the .cxx files are compiling o.k. > except for FL_Text_Display, where I get 12 errors like the one below. > > C:\Program Files\fltk-1.3.0rc3\src\Fl_Text_Display.cxx

[fltk.general] Problem Building 1.3.0rc3

2011-02-24 Thread Mike Werner
I've run into a problem trying to build Version 1.3.0rc3 using MVC++ 6.0 in Windows XP SP3 (32 bit). Looks like all the .cxx files are compiling o.k. except for FL_Text_Display, where I get 12 errors like the one below. C:\Program Files\fltk-1.3.0rc3\src\Fl_Text_Display.cxx(1941) : error C2446:

Re: [fltk.general] override draw function

2011-02-24 Thread Matthias Melcher
On 24.02.2011, at 13:12, leowang wrote: > Dear All, > I have a class A which inherit from Window class, I override it's draw > function. And did nothing in this function. > > Void A::draw() > { > return; > } > > But I found that when I call show() or redraw() function, it can call draw >

[fltk.general] override draw function

2011-02-24 Thread leowang
Dear All, I have a class A which inherit from Window class, I override it's draw function. And did nothing in this function. Void A::draw() { return; } But I found that when I call show() or redraw() function, it can call draw function and refresh the window to black. Why? I think it shoul