Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!hplabs!mgsmith From: mgsmith@hplabs.hpl.hp.com (Michael Smith) Newsgroups: comp.windows.x Subject: Re: Colors, Fonts, & Vararrrrggggghhhhhs!!!! Message-ID: <5992@hplabsb.hplabs.hpl.hp.com> Date: 28 Mar 91 16:46:17 GMT References: Reply-To: mgsmith@hplabsb.UUCP (Michael Smith) Organization: HPLabs Palo Alto, CA Lines: 33 > >title_label = XtVaCreateManagedWidget ( > "title_label", > labelWidgetClass, > base_win, > XtNfont, "-*-helvetica-*-r-*-*-14-140-*-*-*-*-*-*", > XtNlabel, "ASCII Chart", > XtNwidth, 408, > XtNbackground, "white", > NULL); > Because the XtVa function call does not what type to convert from, it doesn't know which converter to use. Therefore it is assumes that the type is proper. You were assigning the string "white" for the backgrouind when it was expecting a pixel value. You will hate me for this one but there is a way to do it but someone borrowed my documentation and hasn't returned it yet. It goes something like: title_label = XtVaCreateManagedWidget ( "title_label", labelWidgetClass, base_win, XtNlabel, "ASCII Chart", XtNwidth, 408, XtNbackground, XtDoConversion, XmNpixel, XmNstring, "white", NULL); Mail me something in a couiple of days and maybe I will have retrieved the documentation by then. Mike Smith HP Labs