Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!ben From: ben@hpcvlx.HP.COM (Benjamin Ellsworth) Newsgroups: comp.windows.x Subject: Re: Constraint Class Question Message-ID: <100920066@hpcvlx.HP.COM> Date: 31 Mar 89 20:55:06 GMT References: <22927@coherent.com> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 30 > ...But calling XtSetValues() may be the easiest way for a widget > class to override default values specified by its superclasses. ... Nope. The easiest way is to override the defaults in the default list. For example, to override XtNborderWidth add the default to your resource list: { XtNborderWidth, XtCBorderWidth, XtRDimension, sizeof(Dimension), XtOffset(MyWidgetClass, core.border_width), XtRImmediate, (caddr_t) 25, }, You can do that other stuff if you're careful, but I can't take the time to explain all of the gory details right now, and with the above solution, why bother? ----------------------------------------------------------------------- Benjamin Ellsworth | ben%hp-pcd@hp-sde.sde.hp.com | INTERNET Hewlett-Packard Company | {backbone}!hplabs!hp-pcd!ben | UUCP 1000 N.E. Circle | (USA) (503) 750-4980 | FAX Corvallis, OR 97330 | (USA) (503) 757-2000 | VOICE ----------------------------------------------------------------------- All relevant disclaimers apply. -----------------------------------------------------------------------