Hi


  I want to display different image on button by passing the string
"ImageName_num" to  Fl_RGB_Image function while pressing the button

  I could able to display different image on button. But how to avoid memory
leakage if every time creating new  Fl_RGB_Image by passing different image



 Herewith reference code



   Fl_RGB_Image *img = new Fl_RGB_Image(ImageName_num, w(),h(), 3,0);
    if(img)
     {
                b->  image(img);

               b->redraw();

      }



Regards
Pushparaj
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to