141) Why does XtGetValues() XmNx and XmNwidth return extremely large


Answer: You must use the 16 bit "Dimension" and "Position" data types for your
arguments.  If you use 32 bit integers, some implementations will fill the
remaining 16 bits with invalid data, causing incorrect return values.  The
*Motif Programmer's Manual* and the widget man pages specify the correct data
type for each resource.

thanks to Ken Lee, klee@synoptics.com ----------
Go Back Up

Go To Previous

Go To Next