>>>> "Michael" == Michael Toomim
<toomim(a)ocf.berkeley.edu> writes:
Michael> Do you mean "toolbars don't use faces" or "the glyphs
Michael> that get drawn on toolbar buttons don't use faces"?
Both, as far as I can tell. I don't really understand the code, but
it looks to me like in 21.4 the toolbar code just ignores all face
information, and calls the low-level code that draws glyphs directly
without paying any attention to face information.
Michael> Thanks, but I want to set different colors for different
Michael> glpyhs on different toolbar buttons.
I sorta suspected that, but thought I'd give the resource approach a
try.:-/
Michael> (If you're curious, the action of clicking one of the
Michael> buttons in my application is to change the color of text
Michael> between point and mark in the buffer, so I want the text
Michael> on the button to be the color that the region in the
Michael> buffer will change when you click it.)
Would you mind contributing the region-handling + toolbar code? I'm
working on a toolbar utilities package in hopes of preventing GNU from
forcing yet another gratuitously incompatible API on the 3rd party
developers, and some eye-candy would help promote it. You can retain
copyright or give it to the FSF, I don't care. (The API
implementation will be contributed so that GNU can put it in Emacs, of
course, but any toys don't have to be.)
Michael> If this works in 21.5, though, I'll try using that
Michael> instead!
Give it a try, but I wouldn't bet on it. ISTR that's one of the
things that doesn't work right in 21.5 (namely, the toolbar code uses
the toolbar's face, and ignores glyph faces, or worse yet, it may use
the default face).
If you have some time to look at the code, I'll be happy to answer
questions to the extent I can, but I still don't understand it that
well. I think it was mostly written by Bill Perry
<wmperry(a)xemacs.org>. He responds with random lags (and a point mass
at infinity ;-).
--
Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Ask not how you can "do" free software business;
ask what your business can "do for" free software.