BA_PicView is a Box and looks like this: Fl_Box *BA_PicView; BA_PicView->box(FL_THIN_DOWN_BOX); BA_PicView->color(FL_DARK1); BA_PicView->align(FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
I removed Besucheralbum->redraw(); The window size is 800x480 and the picture size is 640x480 and also the Box is 640x480. Could it be that the image isn't shown because it's simply too great? Perhaps out of bounds of the Box including the frame? And is there another way to draw the image in the box? Thanks for your advice. I will try to get 1.1.10 working if this would not help. -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Albrecht Schlosser Gesendet: Dienstag, 1. Dezember 2009 10:00 An: [email protected] Betreff: Re: [fltk.general] Show an Image in a box.... Michael Heiser wrote: > Another problem with my app. I cant show an jpg Image in my Box. Here my > function to show the Image! [ code removed: looks okay ] > BA_PicView->image(jpg); //Box for picture What class is BA_PicView derived from? > BA_PicView->redraw(); //Box redraw okay. > Besucheralbum->redraw(); //Box is within this group Looks okay, if Besucheralbum is derived from any Fl_Group widget. Would probably not even be necessary. [...] > This function is called within a timer that reacts to a message qeueu of a > thread listening to the process that sends the picture. When the picture is > sent, the pic should be visible in the Box. But nothing happens after > calling redraw(). The Jpg is loaded correctly but the Box doesnt show it . > > Does anybody of you know a solution? Too little code to know, but please check that you set the alignment of your box correctly, something like: BA_PicView->align(FL_ALIGN_INSIDE|FL_ALIGN_CENTER); or similar. Maybe the image (it's the label!) is drawn outside of the box (and its parent group) and clipped somehow... To see if it is clipped, it can help to resize the window and see if it appears somewhere else. > My fltk version is 1.1.8rc3 That's rather old, but shouldn't matter. Please try to switch to 1.1.10rc3 (at least for testing this, if it doesn't work with the correct alignment. Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

