> I'm trying to get and set the constraint resources of a widget, and
> I'm confused about several things.
Your confusion is understandable. In the first place, the Poplog
documentation for XtGetConstraintResourceList (REF XT_RESOURCE) is
wrong: the first argument should be a widget *class*, not a widget, and
it returns the set of constraint resources defined by that class.
Probably not very useful for most people, which is why nobody's noticed
before that it doesn't work -- it demands that the second argument
should be of type XptResourceListPtr, but there's no such type in
Poplog.
You can bypass the type checking using the fast_ version, but I wonder
if you really want to? As far as I know, reading and writing constraint
resources for a widget is no different to setting any other resources;
e.g. when I want to set attachment resources for a widget in a Motif
form I just do something like:
XmATTACH_FORM -> XptVal w(XmN topAttachment:byte);
Robert
------------------------------------------------------------------------
Robert Duncan, Integral Solutions Ltd. email: robd@isl.co.uk
School of Cognitive & Computing Sciences tel: 01273 678881
University of Sussex, Brighton, BN1 9QH, UK fax: 01273 671320
------------------------------------------------------------------------
|