Xref: utzoo comp.windows.x:28329 comp.windows.x.motif:941 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!gvlv2!tredysvr!paul From: paul@tredysvr.Tredydev.Unisys.COM (Paul Siu) Newsgroups: comp.windows.x,comp.windows.x.motif Subject: How to access the text in Text widget Keywords: text widget, share memory, share text, XmNsource, XmTextSource Message-ID: <957@tredysvr.Tredydev.Unisys.COM> Date: 16 Oct 90 18:42:02 GMT Organization: Unisys Corporation, Tredyffrin, PA Lines: 23 I am a little unclear about text widget in Motif. I am trying to figure out how to access the text widget's text. I need to access the text because another program must access it using share memory. I have look through Dennis Young's book, and I have look through the Motif reference Guide. The reference Guide mentioned that one can access the source text through a resource XmNsource. I am not clear on how this can be done. I only have the motif docs so far, but nothing I can work with, so I can test or verify anything. Could someone on the net answer the following questions. 1. If the source text is in resource, wouldn't it be in a resource file? Wouldn't this be a bit slow accessing the drive all the time? I am still not to clear about resource. 2. The reference mentioned that the XmNsource's type is XmTextSource, can someone tell me what the structure looks like or where I can look it up? 3. Has anyone play around with sharing the text in a widget with another program? What is your experience. Thanks. Paul Siu paul@tredysvr.Tredydev.Unisys.COM