Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!convex!pixel!gstiehl From: gstiehl@pixel.convex.com (Greg Stiehl) Newsgroups: comp.windows.x Subject: Re: Manipulating Widgets from Motif UID files. Keywords: Motif X Message-ID: <1991Mar06.001851.7225@convex.com> Date: 6 Mar 91 00:18:51 GMT References: <717@spinifex.eecs.unsw.oz> Sender: news@convex.com (news access account) Reply-To: gstiehl@convex.com Organization: CONVEX Computer Corporation Lines: 31 Nntp-Posting-Host: pixel.convex.com cheewai@spinifex.eecs.unsw.oz (Chee-Wai Yeung) writes: >From a Motif UID file, how can the widget resource be retrieved and/or >changed? Also, how can the widget ID be retrieved? The cleanest way is to use the MrmNcreateCallback callback. The function that you register can store the widget ID passed to it. Then you can use this ID to do XtSetValues and XtGetValues(). Here is an example: UIL: object transDialog: XmFormDialog { callbacks { MrmNcreateCallback = procedure transCreate(); }; }; C: static Widget transWidget = NULL; void transCreate(w, client, call) Widget w; XtPointer *client; XtPointer *call; { transWidget = w; }