Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!convex!gstiehl From: gstiehl@convex.com (Greg Stiehl) Newsgroups: comp.windows.x.motif Subject: Re: User settable resources in UIL Message-ID: <106968@convex.convex.com> Date: 8 Oct 90 23:01:10 GMT References: <8768@milton.u.washington.edu> Sender: usenet@convex.com Reply-To: gstiehl@convex.com (Greg Stiehl) Lines: 35 To: mattf@milton.u.washington.edu (Matthew Freedman) > Upon further research, I discovered that the man page for MrmRegisterNames > says that the names registered can not only refer to callback functions, > but to "pointers to user-defined data, or any other values". That sounds > like the perfect solution -- create new font and color resources normally, > through Xt, then register them with UIL via MrmRegisterNames, right? > Well I tried this in several variations, but I can not get UIL to find the > value. The 'exported' declaration-modifier apparently causes UIL to look > in the other UID files, but nowhere else. How do you get UIL to accept > values other than callback names via MrmRegisterNames??? identifier is what you need to use in the uil code. Here's an example: In your C program: static int width = 50; static MrmRegisterArg regvec[] = { {"width", (caddr_t)&width}, }; static MrmCount regnum = XtNumber(regvec); MrmRegisterNames (regvec, regnum); And in your UIL file: identifier width; Then you should be able to use width anywhere in the UIL file. ---------- Greg Stiehl Convex Computer Corporation 3000 Waterview Pkwy Richardson, TX 75080 (214) 497-4715 gstiehl@convex.com