> From: [email protected]
> Date: Mon, 2 Aug 2010 10:52:01 -0700
> To: [email protected]
> Subject: [fltk.general] time + chnage
>
> md houssy wrote
>
> ->Good evening everybody;
> ->I want to display a box and change its colour every 2 seconds !
> ->should I utilise Fl_Timer ? if yes, how could it be?
> ->thank you
>
> A simple example follows.
> Of course the colour selection can be any scheme you want instead of my two
> colour example.
I am sorry but I couldn't manage that, this is my class , where B is the box I
would like to be changed any suggestions ?
class Info : public Fl_Group
{
public:
Fl_Box Prenom,Nom,Login;
Fl_ouput prenom_output,nom_output,login_output;
Fl_Box B;
Info(int x,int y,int w,int h):Fl_Group (x,y,w,h),
Prenom(FL_NO_BOX,w/15,5*h/12,(w+h)/30,(w+h)/80,"prenom"),
Nom(FL_NO_BOX,w/15,(5*h/12)+(2*(w+h)/100),(w+h)/30,(w+h)/80,"nom"),
Login(FL_NO_BOX,w/15,(5*h/12)+(4*(w+h)/100),(w+h)/30,(w+h)/80,"login"),
prenom_output((w/10)+(w+h)/30,5*h/12,(2*w+h)/15,(w+h)/80),
nom_output(w/10+(w+h)/30,(5*h/12)+(2*(w+h)/100),(2*w+h)/15,(w+h)/80),
login_output(w/10+(w+h)/30,(5*h/12)+(4*(w+h)/100),(2*w+h)/15,(w+h)/80),
B(FL_BORDER_FRAME,(w/2)-400-h/35,(h/10)+64-(w+h)/140,(w+h)/40,(w+h)/70,"")
{
B.color(FL_RED);
end ();};
~Info(){};
};
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk