On 12/10/2012 10:28 PM, Stephen J. Turnbull wrote:
Sean MacLennan writes:
> > It *does* change the preview box in the customize face buffer, the
> > sample does indeed have the correct background shown for all three
> > faces for the tabbar, toolbar, and menubar.
Those widgets are implemented at the X level, not in XEmacs proper.
The interface to faces is a major kludge, and barely gets fonts right
(except it's worse under Xft, where only ISO-8859-1 works IIRC).
> > Any idea what I have to do to get a background pixmap to work in
> > those three areas?
>
> I believe you have to set them in your .Xdefaults file using X
> resources.
I think that should work (modulo I'm not sure if we support .Xdefaults
any more; the modern way is .Xresources and xrdb), and there is a way
to access and mutate X resources from Lisp (x-get-resource and
x-put-resource).
It would be nice if Custom could be taught to do this, maybe. (I
haven't thought that through, though, it might be a horrible idea. ;-)
Steve
I looked into specifying it in the .Xresources file, and while that may
be possible,
you would have to know the exact name of the setting you are trying to set.
Something similar to:
Emacs.menubar*attributeForeground:
Emacs.menubar*attributeBackground:
If the Athena widgets were compiled with Xaw-Xpm, a variant of Xaw-3d,
it might
give background pixmaps to all widgets, buttons, widgets in buffers,
scrollbars, etc.
But Xaw-Xpm won't compile as is, compiler flags from 1996 with -m486, etc.
1996 was the last time it was updated, it looks like.
At 27.12.3 in the XEmacs User Manual, there is a list of Xresources, and
nothing
there looks like a background pixmap.
Perhaps there is someplace else to look for more Xresources that XEmacs
can use?
I'm about ready to conclude that they are not implemented, after looking
for info
on this in lucid widgets (lwlib) and scouring the internet.
I was successful in getting the background pixmap set for the modeline.
So background pixmaps can be used in the main display area and in the
modeline,
but those two places are the only ones I can get to work.
Are they generated differently than other parts of the XEmacs screen?
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta