Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ames!ncar!ico!auto-trol!marbru From: marbru@auto-trol.UUCP (Martin Brunecky) Newsgroups: comp.windows.x Subject: Re: MrmFetchLiteral and String tables? Help!?!? Message-ID: <1191@auto-trol.UUCP> Date: 7 Jun 90 15:08:50 GMT References: <9006061717.AA06178@zardoz.coral.com> Reply-To: marbru@auto-trol.com (Martin Brunecky) Organization: Auto-trol Technology, Denver Lines: 28 In article <9006061717.AA06178@zardoz.coral.com> don@zardoz.coral.COM (Don Dewar) writes: > >I want to store some string array data in a uil file that I use to >build a screen, but it is not directly related to uil. So I stored it >as an asciz_table... What about saving yourself troubles with UIL and storing it in the app-defaults resource file ? You can retrieve your string(s) with XtGetApplicationResources, and you can either use some separator to delimit individual strings, or have a resource for each item, such as: foo.foo.str1: xxxx foo.foo.str2: yyyy Note, XtGetApplicationResources is optimized for retrieving multiple resources at a time (the code used at widget creation time, even if you use UIL ...). Also, you can "attach" your resources to any widget in your tree. Also note, that Motif likes to twist and tweak your widget tree by "confusion routines" which insert hidden shells, parent widget off a different widget than you specified ... just beware. -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky marbru@auto-trol.COM (303) 252-2499 {...}ncar!ico!auto-trol!marbru Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404