Article View: comp.windows.x
Article #37783asciiTextWidgetClass (text color)
From: Jack A. Zucker
Date: Wed, 07 Mar 1990 01:48
Date: Wed, 07 Mar 1990 01:48
19 lines
1167 bytes
1167 bytes
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
Technical Details
Message-ID:
<1038@abvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!usenet.ins.cwru.edu!cwjcc!abvax!jazShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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