[comp.windows.x] changing background of command widget or re-labelling label widget

aw@macbeth.cs.duke.edu (Angus Wang) (03/22/89)

I am writing an application where I need to have a status of a flag
constantly showing and able to be changed without unmapping it. From
the design of the application, there are 2 ways I thought of that 
would be consistent with the user-interface.
	1. Have the command button used for setting the flag remain
	    highlighted untill another command button on the same
	    menu is selected. OR change the backgroud/pixmap of the
	    command button in the same manner as above.

	2.  Have a label widget as past of my composite widget and
	    update the label of it everytim the user selects a commnand
	    button.

Does anyone have any useful hints on how to do any of the above?  I know
something like this has been asked like this before but I didn't savew the
postings from last summer.

I'm using a  topLevelShellWidgetClass as the shell widget for my
menu, a form as a child of that, abox as a child of that, and 10
command widgets as children of the box widget.  The label widget is on
a form widget that is child to the toplevel widget that is created
when XtInitialize is called.  This is all on a Sun 4 running Sun)S 4.0
on a color monitor with X V11 R3.

Any help would be greatly appreciated.
Angus Wang
---------------------------------------------------------------------------
Department of Computer Science, Duke University, Durham, NC 27706
	UUCP :  decvax!duke!aw 	  CSNET:  aw@duke 
	ARPA :  aw@cs.duke.edu