home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!bcstec!aw108!mdr0264
- From: mdr0264@aw2.fsl.ca.boeing.com (Michael D. Riston)
- Subject: XmText: Obtaining the string value without allocating space.
- Message-ID: <1993Jan6.151418.2779@aw2.fsl.ca.boeing.com>
- Keywords: XmText, String Value
- Organization: fsl
- Date: Wed, 6 Jan 1993 15:14:18 GMT
- Lines: 20
-
- Is there a way to get the XmText widget's internal string value character
- pointer directly?
-
- I am using XmTextGetString and XmNvalue to get a character pointer, but
- these methods both return a memory allocated string that I have to
- delete when I am done using it. When you have large files in the Text widget
- (like an editor), constantly allocating memory becomes very inefficient,
- whenever you want to look at the Text string (which is alot when your
- application is an editor).
-
- ------------------------------------------------------------------------------
- Michael D. Riston |Voice: (206) 662-4345
- Boeing Commercial Airplanes |Boeing net: mdr0264@aw300
- P.O. Box 3707, M/S 19-MH |UUCP: ..!uunet!bcstec!aw300!mdr0264
- Seattle, WA 98124-2207 |Internet: mdr0264@aw300.iasl.ca.boeing.com
- --
- ------------------------------------------------------------------------------
- Michael D. Riston |Voice: (206) 234-2432
- Boeing Commercial Airplanes |Boeing net: mdr0264@aw300
- P.O. Box 3707, M/S OW-31 |UUCP: ..!uunet!bcstec!aw300!mdr0264
-