Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!swrinde!ucsd!ucbvax!alfalfa.com!MAILER-DAEMON From: MAILER-DAEMON@alfalfa.com (Mail Delivery Subsystem) Newsgroups: comp.windows.x.motif Subject: Returned mail: User unknown Message-ID: <9105170126.AA20100@BU.EDU> Date: 17 May 91 01:26:23 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 83 ----- Transcript of session follows ----- >>> RCPT To: <<< 550 ... User unknown 550 post-motif@ucbvax.berkeley.edu... User unknown ----- Unsent message follows ----- Received: by BU.EDU (1.99) Thu, 16 May 91 21:26:23 EDT Received: by alfalfa.com ( 5.52 (84)/test) id AA00411; Thu, 16 May 91 20:42:56 EDT Received: by sun.UUCP (4.1/ASI-1.0) id AA00938; Thu, 16 May 91 20:25:20 EDT Received: by alfalfa.com ( 5.52 (84)/test) id AA16281; Thu, 16 May 91 20:17:48 EDT Received: by BU.EDU (1.99) Thu, 16 May 91 19:25:35 EDT Date: Thu, 16 May 91 19:25:35 -0400 From: MAILER-DAEMON@alfalfa.com (Mail Delivery Subsystem) Subject: Returned mail: User unknown Message-Id: <9105162325.AA14092@BU.EDU> To: motif-request@alfalfa.com Resent-To: post-motif@ucbvax.berkeley.edu Resent-From: nazgul@alfalfa.com (Information Junkie) Resent-Date: Thu, 16 May 91 20:25:19 -0400 Resent-Message-Id: <910516202519.884@sun.alfalfa.com> ----- Transcript of session follows ----- 421 censun1.gsfc.nasa.gov.tcp... Deferred: Connection timed out during user open with censun1.gsfc.nasa.gov >>> RCPT To: <<< 550 ... User unknown 550 post-motif@ucbvax.berkeley.edu... User unknown ----- Unsent message follows ----- Received: by BU.EDU (1.99) Thu, 16 May 91 19:25:35 EDT Received: by alfalfa.com ( 5.52 (84)/test) id AA00315; Thu, 16 May 91 19:06:41 EDT Received: by alfalfa.com ( 5.52 (84)/test) id AA15863; Thu, 16 May 91 18:27:46 EDT Received: by alfalfa.com ( 5.52 (84)/test) id AA15828; Thu, 16 May 91 18:26:43 EDT Received: from osf.osf.org by BU.EDU (1.99) Thu, 16 May 91 18:10:06 EDT Received: from clew.osf.org by osf.osf.org (5.64+/OSF 1.0) id AA29971; Thu, 16 May 91 18:10:01 -0400 Received: by clew (5.57/4.7) id AA27488; Thu, 16 May 91 18:09:44 -0400 Message-Id: <9105162209.AA27488@clew> To: mips!swrinde!zaphod.mps.ohio-state.edu!samsung!olivea!oliveb!amdahl!rtech!medicus!barry@apple.com Cc: motif@alfalfa.com Subject: Re: XmStringSegmentCreate().............. In-Reply-To: Your message of 14 May 91 00:06:41 +0000. <1991May14.000641.4039@medicus.com> Date: Thu, 16 May 91 18:09:35 EDT From: W. Scott Meeks >Date: 14 May 91 00:06:41 GMT >From: mips!swrinde!zaphod.mps.ohio-state.edu!samsung!olivea!oliveb!amdahl!rtech!medicus!barry@apple.com (Barrelda Q. Nammowitz) > >I'm working with text widgets and functions and have not been >able to use XmStringSegmentCreate() successfully or find >a working example of it being used anywhere. > >Could some kind soul send me a working code segment using this >motif function. >If it matters I'm running ICS 2.21 X11R3 motif 1.0. First, I'm a little concerned by the fact that you use "text widgets" and XmStringSegmentCreate in the same sentence. Text widgets don't work with compound strings, only with ASCII strings. If you're trying to feed an XmString to a text widget, that's probably your problem. Second, it's usually not necessary to use XmStringSegmentCreate unless you need to create a series of atypical segments, particularly with the direction set to RtoL. For most cases, XmStringCreate or XmStringCreateLtoR should be sufficient. Either way, there's a brief but complete description of XmStringSegmentCreate in section 8.1.2.29 of the Programmer's Guide and some sample code in section 8.1.3. I'm afraid I don't have any code samples handy since I don't use it. W. Scott Meeks Open Software Foundation meeks@osf.org (617) 621-7229