Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!asuvax!mcdphx!hrc!uucs1!gaf From: gaf@uucs1.UUCP (gaf) Newsgroups: comp.windows.x Subject: Getting ID for widget loaded from .uid? (Motif) Message-ID: <223@uucs1.UUCP> Date: 10 Jan 90 04:14:00 GMT Reply-To: gaf@uucs1.UUCP () Organization: UUCS inc., Phoenix Az Lines: 20 I can't believe there isn't a simple, approved way to do this, but can't see one for the life of me. I fetch a tree of widgets from my .uid file, and need the widget ID of some of them so I can twiddle their resources on the fly. Trouble is, I can't see a way of finding the widget ID. My situation is pretty simple: I have a toggle button on a menu, the callback for which tries to open a file. If the open fails, I don't want to leave the toggle "on" since it would fool the user. It's easy enough to turn it "off" with XtSetValues, but I need the widget ID for that. This seems like the sort of thing that would come up fairly often. Has anyone else faced and solved this, or am I missing something obvious (not uncommon). -- Guy Finney It's that feeling of deja-vu UUCS inc. Phoenix, Az all over again. ncar!noao!asuvax!hrc!uucs1!gaf sun!sunburn!gtx!uucs1!gaf