Michael Heiser wrote:

> Another problem with my app. I can’t 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 doesn’t 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

Reply via email to