Stephen J. Turnbull wrote:
>>>>>"Michael" == Michael Toomim
<toomim(a)cory.eecs.berkeley.edu> writes:
Michael> This makes a toolbar button with the text "This is a
Michael> button", but the button's text isn't colored green like
Michael> it should be (right?).
Thanks for the report. Toolbars in 21.4 are not window system
widgets, they are handled internally to the frame (Motif would call
them gadgets, I guess), and don't seem to use faces at all. Fixing
would require invasive surgery. Toolbars use faces in 21.5, but not
correctly yet IMO.
Do you mean "toolbars don't use faces" or "the glyphs that get drawn on
toolbar buttons don't use faces"? (Just checking.) I'm concerned with
the latter.
Use the X resources, eg:
XEmacs*backgroundToolBarColor: LemonChiffon2
XEmacs*menubar*Foreground: Brown
XEmacs*menubar*Background: LemonChiffon2
This works fine for me.
Thanks, but I want to set different colors for different glpyhs on
different toolbar buttons. I'm using text glyphs instead of pixmap
glyphs so that they're easy for me to change at runtime, but I still
want to be able to set the color of the glyphs on the buttons. (If
you're curious, the action of clicking one of the buttons in my
application is to change the color of text between point and mark in the
buffer, so I want the text on the button to be the color that the region
in the buffer will change when you click it.)
If this works in 21.5, though, I'll try using that instead!
Thanks,
Michael