rao@enuxha.eas.asu.edu (Arun Rao) (12/19/89)
We are encountering a strange (and somewhat intermittent) problem with the Static Raster Widget in the HP widget set. We are attempting to change the XtNsRimage resource by calling XtSetValues() within a callback routine registered with a pushbutton widget. The following things happen: (i) The image in the static raster widget either changes twice in quick succession (i.e. it behaves as if XtSetValues() was called twice) or does not have any effect at all. The latter effect occurs when a sequence of XtSetValues() calls is issued - only the last call before return from the callback appears to have any effect. We have tried forcing the situation by calling XFlush() and XSync(), but nothing works. (ii) The selected pushbutton stays "selected" (i.e. highlighted) after return from the callback. All the other buttons still work. We would appreciate any help. Is there a better way to change the image in a static raster widget ? One of the applications we are looking at is animation - and there appears to be no good way of accessing the double-buffering capabilities of our Ardent Titan workstations from X. Thanks in advance. -Arun Rao -- Arun Rao ARPANET: rao@enuxha.eas.asu.edu BITNET: agaxr@asuacvax, agazr@asuacad 950 S. Terrace Road, #B324, Tempe, AZ 85281 Phone: (602) 968-1852 (Home) (602) 965-3452 (Office)