XForms: xforms colors

Jorge Lobo (jlobo@isr.uc.pt)
Mon, 28 Dec 1998 15:09:12 +0000 (WET)

# To subscribers of the xforms list from Jorge Lobo <jlobo@isr.uc.pt> :

Hi,
I am having trouble with colors in xforms. I'm using pseudocolor and my
own color map for viewing images in a X canvas (252 gray scale + 3 primary
colors for overlay markings) with XPutImage.
I want to tell xforms which colors to use, but I can only set a few of
each objects colors, using fl_set_object_color and giving the index in my
colormap. Buth How can I control the 3D frame and button effects colors ?
I went throgh the forms.h file and tried to change the colors enum
orther and numbers so that xforms would fecth the right gray scale values
from my colormap. This also proved unsuccessful.
How does xforms lookup a color, for istance FL_COL1 is 11, I chamged
forms.h to have FL_COL1 = 161, expecting it to fetch the color from the
colormap index 161, but it didn't. The must be some hidden table or
process that I am missing, or some more basic thing that I am overlooking.

Thank you for your time.

Have a Merry Xmas and a Happy New Year.

Jorge Lobo.

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/