Color update

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Color update

Submitted by Anonymous on Mon, 07/16/2001 - 13:49. Developers
Hi,

I have to update very often the background color of an object that acts as a LED. I receive a message every 800 millisecond but it takes a long time to update this object (XmLabel) by using XtVaSetValues function and messages received are buffered in the pipe and break it after a while.
Is there a faster way to change the background color of an XmLabel ? Is there an object for which it would be faster to update its background color ?

Thanx.

ICS_support

After the usual caveats about depending on color changes as an important part of the user interface, much less depending on rapid color changes, let me suggest the article at http//www.motifzone.com/tmd/articles/quick_flush/refresh.html , which offers two solutions, although both of them have some problems; the subclass solution mentioned there is probably more appropriate for you.

Alternatively, you can use the XmDrawingArea or another direct window solution, which allows you to change the color and flush the request without triggering Xt`s set_values procedures.