Under windows, it's more complicated than changing a resource, but it's
really not very difficult. Especially if all menu items are drawn with
the same face. You just set MF_OWNERDRAW when creating the menu items,
and then handle the WM_MEASUREITEM and WM_DRAWITEM messages. (Much like
any other "owner draw" item under windows. In fact, most of the code can
be salvaged from elsewhere.)
Only took about 5 minutes to hack a menu in one of my programs to draw in
different faces (a different face for each line).
-Jim Potts
Ben Wing <ben(a)666.com> wrote:
in fact this is NOT hard or impossible under x, but is under windows.
changing
x resources is easy from within the xemacs c code.
"William M. Perry" wrote:
>
> Aaron Lehmann <aaronl(a)vitelus.com> writes:
>
> > > I know this would be hard or impossible under X, but what about
windows?
> >
> > Why would it be impossible under X?
>
> Because all that stuff lives beyond the control of XEmacs (at least it
used
> to, I don't know about all the changes to lwlib that andy has
done
> lately). Right now you can only specify it via X resources, not from
> lisp.
>
> -Bill P.