jaz@abvax.UUCP (Jack A. Zucker) (03/07/90)
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