Hi guys,

I'm writting a win32 app, I subclassed Fl_Window, then add a png image to 
appear inside the window. Everything's ok in Debug mode, but in Release mode 
the image does not show up,what appeared is just a red colored background. 
Here's some code from the program...

#include <FL/Fl_Window.H>
#include <FL/Fl_Shared_Image.H>
#include <FL/Fl_PNG_Image.H>

// Consturctor.
class MyWindow : public Fl_Window
{
    public:
    MyWindow (int W, int H, const char* title = 0);
   ~MyWindow ();

    Fl_Box*            imgBox;
    Fl_PNG_Image*      img;
}


MyWindow::MyWindow (int W, int H, const char* title)
: Fl_Window (W, H, title)

{
    begin();

    fl_register_images ();
    imgBox = new Fl_Box (FL_NO_BOX, 0, 0, 720, 541, NULL);
    img    = new Fl_PNG_Image ("img\\Backdrop_Image_1.png");
    imgBox->image (img);

    end();
    show();
}

Thanks

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

Reply via email to