Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!mips!pacbell.com!ucsd!ucbvax!westhawk.UUCP!thp From: thp@westhawk.UUCP ("Timothy H Panton.") Newsgroups: comp.windows.x.motif Subject: (none) Message-ID: <"swan.cl.ca.001:05.00.91.09.34.48"@cl.cam.ac.uk> Date: 5 Jan 91 09:16:54 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 26 Message-Id: <9101050916.AA06851@westhawk.uucp> To: motif%alphalpha.com%ukc.ac.uk@cl.cam.ac.uk Subject: Re: Trying to create a widget with a 'double' or 'float' resource. Cc: thp@westhawk Doug Selph on the difficulty of using doubles as resources > And don't come responding to me that you have to pass the > 'address of a double or...' Ok I won't, but many resources are passed by reference, strings, structures etc. It is a weakness of Xt, but there you go. > define my own 'DblArg' and 'AxisSetDblValues' This won't help you with the (many) other ways resources get values. You might as well dispense with the pretence and write a function, say SetAxis(widget,axis,value) . Tim. +----------------------------------------------------------------------------+ |Tim Panton, Westhawk Ltd. "Do not meddle in the affairs of Wizards, for | |Phone: +44 928722574 they are subtle and quick to anger." | |Email: thp%westhawk.uucp@ukc.ac.uk The Lord of the Rings. | |Paper: Westhawk Ltd. 26 Rydal Grove, Helsby, Cheshire, WA6 OET. UK. | +----------------------------------------------------------------------------+