Path: utzoo!attcan!uunet!husc6!bbn!rochester!pt.cs.cmu.edu!sei!kwh From: kwh@sei.cmu.edu (Kurt Hoyt) Newsgroups: comp.windows.x Subject: String --> Pixel conversions Keywords: Xt Toolkit Message-ID: <2877@di.sei.cmu.edu> Date: 23 May 88 17:09:31 GMT Organization: Carnegie-Mellon University (Software Engineering Institute), Pgh, PA Lines: 22 Has anyone else had the X11R2 Xt Toolkit fail to convert String colorname resources into the corresponding Pixel value? I have a line in my XtResourceList which looks like this: {XtNlineColor, XtCForeground, XtRPixel, sizeof(Pixel), XtOffset(LineObject, line.color), XtRString, "Black"}, The XGetSubresources call correctly converts "Black" to the right pixel value. 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? -- Kurt Hoyt, Software Engineering Institute -- kwh@sei.cmu.edu "From previous research with rendering systems we have learned that a good dose of gratuitous partial differential equations is needed to meet the paper quota for impressive formulas." SIGGRAPH '87 Proceedings, p. 73