Path: utzoo!attcan!uunet!wugate!wuarchive!brutus.cs.uiuc.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!TUB.BITNET!net From: net@TUB.BITNET (Oliver Laumann) Newsgroups: comp.windows.x Subject: Re: Re: XtConvert & SetValues for floats Message-ID: <8907270952.AA01762@tub.UUCP> Date: 27 Jul 89 09:52:10 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 15 > The Arg struct has a char * for name and a caddr_t for value. When a > float is loaded into a caddr_t, your friendly C compiler converts the > float into an int. Ain't that great?! > > Now perhaps you can understand why there are no examples of widgets > which use float resources. :-( When float resources are used, a pointer to a float is stored into the argument value instead of a literal float. The Xaw scroll bar widget at least (which has XtRFloat resources) works quite well. Or am I missing something? -- Oliver Laumann net@TUB.BITNET net@tub.UUCP