Andy Piper <andy(a)xemacs.org> writes:
At 09:22 PM 5/29/00 -0500, William M. Perry wrote:
>so, since the widgets are glyphs, and glyphs go in toolbars, would I be
>able to put a text-entry or combo-box into the toolbar now?
Theory says yes. Reality says no because for windows at least its down to
the supported button types. It might work under X though. This is the
problem with working with native widgets - lowest common denominator and
The combo-box style is a specific toolbar style I think, we would have to
fix up the code to cope. MIght not be too hard though ...
Oh, windows doesn't let you stick arbitrary widgets into the toolbar? Hrm.
Would anyone be interesting in revamping the toolbar stuff real soon? I
like ben's proposal on the web site, but I hate having the series-of-glyphs
crap in there.
A toolbar button description should look like:
:glyph GLYPH ; A single glyph to show
:active FORM ; normal menubar-ish :active slot
:tooltip FORM-OR-STRING ; Tooltip to show
:help FORM-OR-STRING ; whats-this type help
This is easily distinguishable from the current XEmacs toolbar specs, and
would look much nicer on GTK or Windows where we could use more of the
We would need to add code to auto-generate a disabled version of the
pixmap, but that should be fairly simple. There is code in Emacs 21.x to
The toolbar code would draw the first string under the glyph if necessary,
so there is no need to supply pixmaps/etc for them. This would make the
toolbar buttons much more readable as well.