[XForms] Setting FL_CHOICE colors.

jason cipriani jac4 at mindless.com
Tue Jun 22 10:14:28 EDT 2004


Jason wrote:
> > How do you set the color of the text of the items in the
dropdown
> > box that appears when you click on an FL_NORMAL_CHOICE2?

Angus wrote:
> the list is a popup. (See xpopup.c.) The code used to draw it in 
> choice.c is to be found in do_pup.
> ...
> fl_setpup_default_color(FL_COLOR fg, FL_COLOR bg)

Ah, thanks! I'm not too familiar with the popup stuff (...yet :/ ).
This did work, unfortunately, the fg color is not only the color of
the text, but it is the color of the border around the title and one
of the colors in the popup's shadow. So a white foreground with a
dark blue background is kind of abrasive, heh.

I wonder if changing it so fg was only the text color would break
anybody's code. I dunno. If you changed the popup default fg color,
it would have to be a subtle change to get acceptable results. So it
would probably be pretty close to black in most applications; doesn't
seem like leaving the title border and shadow black would make much
of a difference.

Does anybody here use light-colored popup fg colors in any of their
applications?

PS: Sorry if you got this twice Angus, I'm a bit clumsy when it comes
to mailing lists. *cough* forums *cough*
-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm




More information about the Xforms mailing list