Michael Heiser wrote:
> 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);

Looks okay. Do you see the box frame and its FL_DARK1
rectangle in your window?

> I removed Besucheralbum->redraw();

Okay, but you know that I wrote "probably"? This ought to
be okay, if BA_PicView is entirely drawn in its own widget
bounds, and that's obviously your intention (it would be
mine ;-).

> 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?

No.

> Perhaps out of bounds of the Box
> including the frame?

Yes (it would cover the frame), but this doesn't matter. You can
limit it within the bounds of the box by adding FL_ALIGN_CLIP to
the box alignment flags.

If you are concerned about the image size you can use
Fl_Image::copy(int w, int h) to create an adjusted image.

> And is there another way to draw the image in the box?

Yes, if you want to derive your own class, then you can use
fl_draw_image() within your class's draw() method, but the
box/image way is the easier one IMHO.

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

Reply via email to