Path: utzoo!attcan!uunet!husc6!bloom-beacon!WSL.DEC.COM!asente From: asente@WSL.DEC.COM Newsgroups: comp.windows.x Subject: Re: String --> Pixel conversions Message-ID: <8805232258.AA22283@gilroy.dec.com> Date: 23 May 88 22:58:32 GMT References: <2877@di.sei.cmu.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 17 >However, if an Arg structure like: > > {XtNlineColor, "Green"}, > >is passed to XtGetSubresources, "Green" is NOT converted to ANY pixel value. >The address of the string "Green" is returned. I expected the value to be >converted. Is this an incorrect expectation? Yes, it is incorrect. Resource conversions do not take place in arg lists. If you think about it, you'll realize that you never specified anywhere in the arg list that you were passing it a string instead of a pixel value. Whether or not this was the right way to do things is debatable, but at any rate it is the way things are. Values in arg lists must be of the end type (pixel in this case). -paul asente