nanogui: Widget configuration in W toolkit
Subject:
Re: Widget configuration in W toolkit
From:
"Greg Haerr" ####@####.####
Date:
20 Dec 2000 19:34:18 -0000
Message-Id: <012901c06abd$06f16360$6817dbd0@censoft.com>
: In W and Max you configure a Widget via a variable argument list with a
: token (the action or thing to change) and a value for this action. You end
: up with a special token. Isn't this paradigma much less powerfull, then
the
: GC one used in X11, nano-X and GEM (virtual workstations=GC)?
I think you're confusing two different things here; that is, Xlib/Nano-X
GC's, and Toolkit initiialization mechanisms.
For instance, the method that Wt uses to initialize a widget is
almost identical to the method that Xt uses. This really doesn't
have anything to do with GCs.
:
: In X11 e.g. you can set up a GC ready for use with - let's say - buttons.
: You can set a fg/bg-color, a font etc. Now you can use this GC a several
: time. In W or Max you would have to set the widgets look each time again -
: explicitely.
Well, if this were a big issue, you could modify the widget initialization
to take a GC, rather than a static color, and you'd have exactly what
you're looking for. However, in most cases, the Wt/Xt widgets
are "above" the level of the windowing system GC/DC etc.
Regards,
Greg