Re: Changing -visual colormap.....

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 9 Jan 97 10:37:07 PST

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> Does anyone know how to discretely vary the colormap of a given FL_OBJECT
> in a FL_FORM struct on a server in 8-bit mode RGB. That is to make the
> given FL_OBJECT use StaticGrey while the rest of the forms are in
> True/Pseudo-Colors?

Basically, no, you can't.

The reason is that XForms objects are not separate windows the way
Widgets generally are. They are just drawn with the X drawing
functions into the Window that contains the Form. What this
sacrifices in modularity, it vastly makes up for lower overhead and
relative speed.

The only exception is the Canvas object, which is a separate Window
and thus may (and often will) have it's own Colormap. However, the
results may not be terribly aesthetically pleasing there, I might
point out, since you'll get Colormap 'flashing' every time you get or
lose focus in the Canvas Window.

spl