Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!usenet.ins.cwru.edu!cwjcc!abvax!jaz From: jaz@abvax.UUCP (Jack A. Zucker) Newsgroups: comp.windows.x Subject: asciiTextWidgetClass (text color) Message-ID: <1038@abvax.UUCP> Date: 7 Mar 90 01:48:41 GMT Organization: Allen-Bradley Company, Inc; Industrial Computer Division, Highland Heights, OH Lines: 19 I am trying to change the text color and I am having no success. The following code, switches the foreground and background colors which work ok, but when I type in text, it comes out in the original color. What am I doing wrong ? XtSetArg(args[0], XtNbackground, &(colors[1].pixel)); XtSetArg(args[1], XtNforeground, &(colors[0].pixel)); XtGetValues(day_entry[(int) timeslot],args, TWO); temp = colors[1].pixel; /* Swap the foreground and background */ colors[1].pixel = colors[0].pixel; colors[0].pixel = temp; XtSetArg(args[0],XtNbackground,colors[1].pixel); XtSetArg(args[1],XtNforeground,colors[0].pixel); XtSetValues(day_entry[(int) timeslot],args,TWO); Thanks, jaz@calvin.icd.ab.com