Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!cit-vax!bek-owl!mazer From: mazer@bek-owl.caltech.edu (Jamie Mazer) Newsgroups: comp.windows.x Subject: Changing Widgets Summary: is this another RTFM question? Keywords: Xaw XtSetValues() changing-resource-values Message-ID: <15514@cit-vax.Caltech.Edu> Date: 6 Jul 90 03:29:22 GMT Sender: news@cit-vax.Caltech.Edu Reply-To: mazer@bek-owl.caltech.edu (Jamie Mazer) Organization: California Institute of Technology Lines: 25 This may be an obvious question, but I can't seem to figure out how to tell which resources can be changed on the fly for a given athena widget. To be precise, in a label widget, I can reverse it and change the text as follows: WidgetSet(someLabelWidget, XtNlabel, (String) p, XtNforeground, (Pixel) background, XtNbackground, (Pixel) foreground, NULL); On the other hand, why can't I do the following: WidgetSet(someTextWidget, XtNeditType, XttextRead, XtNborderWidth, (Dimension) 0, NULL); to make a text widget lose it's border and become read only? It looks like it should work from the Xaw docs, but seems to have no effect (it doesn't seem to have anything to do with using WidgetWrap :-). Am I missing something obvious that's in the doc? Please reply to me, as I'm have trouble keeping up with the volume of comp.windows.x these days. Thanks a lot. /Jamie / mazer@bek-owl.caltech.edu \ \ jmazer@caltech.bitnet /