RE: XForms: Question about colormaps

Sexton, Veronica (sextonv@doimex1.sill.army.mil)
Fri, 23 Jul 1999 07:48:18 -0500

# To subscribers of the xforms list from "Sexton, Veronica" <sextonv@DOIMEX1.SILL.ARMY.MIL> :

> > 1) I cannot seem to get fl_mapcolorname() to work, it crashes
> > when I call it. Yes, I call it before fl_initialize, and I have
> > double-checked the arguments for type or other problems.
>
> fl_mapcolorname() should be called *after* fl_initialize(). You may
> be confusing it with fl_set_icm_color(), which should be called before
> fl_initialize().
>
> For example:
>
> fl_initialize(&argc, argv, 0, 0, 0);
> fl_mapcolorname( FL_RED, "Dodgerblue" );
>
> changes the FL_RED to Dodger Blue.
>
OK. The documentation was not clear on this. It mentions
calling fl_set_icm_color() before fl_initialize(), and
seemed
to imply the same for other calls.

> > 2) The other problem will come about when I get 1) figured out:
> > What about widget shadowing? If I make the foreground color tan,
> > what will happen to the shadows for the buttons? Do they remain
> > gray? Can I do anything to make them be darker and lighter shades
> > of the foreground color?
>
> They remain grey unless you change the table values of FL_RIGHT_BCOL,
> FL_BOTTOM_BCOL, FL_TOP_BCOL, and FL_LEFT_BCOL. Of course, since they
> are globally assigned, all shadows will be affected. For instance, to
> create *really ugly* objects, do
>
> fl_mapcolorname( FL_RIGHT_BCOL, "Orange" );
> fl_mapcolorname( FL_BOTTOM_BCOL, "Red" );
> fl_mapcolorname( FL_TOP_BCOL, "Green" );
> fl_mapcolorname( FL_LEFT_BCOL, "Magenta" );
>
>
Oh, well. I was hoping to be able to have a more
professional look by using shades of the same basic
color. Thanks, Steve.

Veronica

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