[comp.windows.x] displaying a color image inside of a box widget

chapman@lll-lcc.UUCP (Carol Chapman) (03/30/89)

Is it possible to display a color image inside of an Athena box
widget?  My code was progressing nicely until I was unable to find an
Xt equivalent to XPutImage.  XPutImage won't work for me because it
wants a window as an argument, and I want to pass it a widget.  I read
about a routine called XtWindow, but it doesn't seem to work right for
me.  If a box widget can't be used, what should I be using?

I'M UNDER A TIGHT DEADLINE !!!  SOMEONE PLEASE HELLLLPPPPP !!!

thanks,
carol

-- 
-------------------------------------------------------------------------------
Livermore Lab            (chapman@lll-crg.llnl.gov or chapman@lll-lcc.llnl.gov)
P.O. Box 808, L-153      Tel. (415) 423-7876
Livermore, CA  94550     "Never own anything that you have to FEED or PAINT." 

converse@EXPO.LCS.MIT.EDU (Donna Converse) (03/30/89)

>Is it possible to display a color image inside of an Athena box
>widget?

Sure.

>XPutImage won't work for me because it
>wants a window as an argument, and I want to pass it a widget.  I read
>about a routine called XtWindow, but it doesn't seem to work right for
>me.

XtWindow returns the window of a widget, and you can use that
window as an argument to XPutImage.  What doesn't work right?
Did you wait for the first expose event before calling XPutImage?