Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!xanth!mcnc!duke!macbeth!aw From: aw@macbeth.cs.duke.edu (Angus Wang) Newsgroups: comp.windows.x Subject: changing background of command widget or re-labelling label widget Message-ID: <13922@duke.cs.duke.edu> Date: 21 Mar 89 21:27:24 GMT Sender: news@duke.cs.duke.edu Lines: 30 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