[comp.windows.x] Inverting a staticRaster widget.

spencer@heinlein.osc.edu (Stephen N. Spencer) (12/06/89)

I've a question concerning the inversion of a static Raster widget.
I'm using XV11R3 on a Sun 3/60, with the HP widgets from MIT.

In my application I have two banks of buttons (each bank in a rowCol widget).
One of the banks is made up of staticText widgets and the other of 
staticRaster widgets (I've made little bitmaps, read them in, etc.).
I have callbacks set for each of the buttons on a XtNrelease event.

In the callback routine I call a function which inverts the appropriate 
widget (selecting a button puts my application into a mode -- only one 
button at a time in these two banks can be inverted at any given time).
This is accomplished by reading the foreground and background of the widget
and swapping them.  This works fine for the staticText widgets.  This
does not work for the staticRaster widgets: all they do is 'flash', as if
the inversion takes place, then gets undone (w/in 0.5 sec.) 

Any ideas on how I might be able to get the staticRaster widgets to perform
as the staticText widgets do in this particular functionality?  

Thanks...


-=-
Stephen N. Spencer      |"For a successful technology, reality must take
ACCAD, 1224 Kinnear Rd. | precedence over public relations, for Nature
Columbus OH 43212       | cannot be fooled."     - Richard P. Feynman
spencer@heinlein.cgrg.ohio-state.edu OR spencer@cis.ohio-state.edu