Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!mcsun!ukc!tcdcs!swift.cs.tcd.ie!gteo From: gteo@swift.cs.tcd.ie Newsgroups: comp.windows.x Subject: XtSetArg for Setting colour to widget? Message-ID: <7246.27309166@swift.cs.tcd.ie> Date: 1 Nov 90 21:19:33 GMT Organization: Computer Science Department, Trinity College Dublin Lines: 21 Hello, This may be a very trivial question to ask, but it has blotted me for a lot time. When I try to set the background or foreground colour for a widget, for example, a label using the following, XtSetArg(arg[i],XtNbackground, "blue"); i++; ... XtSetValues(label, arg,i); or in Motif XtSetArg(arg[i],XmNbackground, "blue"); i++; ... XtSetValues(label, arg,i); The background colour of the label widget just doesn't seem to be set to the colour stated, in this case, "blue". What do I have to do to make this to work? Thanks, Ghee Teo