Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!ducvax.auburn.edu!eng.auburn.edu!kkirksey From: kkirksey@eng.auburn.edu (Kenneth B. Kirksey) Newsgroups: comp.windows.x Subject: Colors, Fonts, & Vararrrrggggghhhhhs!!!! Message-ID: Date: 25 Mar 91 20:49:36 GMT Organization: Auburn University Engineering Lines: 36 Nntp-Posting-Host: lab23.eng.auburn.edu I know that I'm going to feel really stoopid when I find out the answer to this one, but I'll ask anyway. I'm having problems when I specify fonts or colors in my XtVaCreateManagedWidget calls. For example: title_label = XtVaCreateManagedWidget ( "title_label", labelWidgetClass, base_win, XtNfont, "-*-helvetica-*-r-*-*-14-140-*-*-*-*-*-*", XtNlabel, "ASCII Chart", XtNwidth, 408, XtNbackground, "white", NULL); makes the background black. If I specify any other color, it still makes it black. If I specify a color for any of my widgets, it makes it black. The colors work fine when I specify them in the app defaults file, as do my font specifications. The call above gives me a "bad font" error. I thought that when you specified values in the varargs list that they would automatically be converted to the correct type. Is this the case? If not, how should I go about doing this. Thanx in advance, Ken +---------------------------+------------------------------------------------+ | Ken Kirksey | "I stay driven 'cause there's nowhere to park, | | | I can't shut my eyes, I'm afraid of the dark, | | Computer Engineering | I lie awake, that stone left me chilled to | | | the bone, | | Auburn University | Sound the alarm before it's done, | | | Find Jim Morrison!" | | kkirksey@eng.auburn.edu | - Steve Taylor | +---------------------------+------------------------------------------------+