Xref: utzoo comp.windows.x:35274 comp.windows.x.motif:2549 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!lll-crg.llnl.gov From: chapman@lll-crg.llnl.gov (Carol Chapman) Newsgroups: comp.windows.x,comp.windows.x.motif,ba.windows.x,llnl.x Subject: can't retrieve label strings Summary: can set, but can't retrieve char strings from label widgets Keywords: Motif 1.1, C, UIL, X11R4, XmString, label widgets Message-ID: <95347@lll-winken.LLNL.GOV> Date: 14 Apr 91 22:18:28 GMT Sender: usenet@lll-winken.LLNL.GOV Followup-To: comp.windows.x Organization: Livermore National Laboratory Lines: 28 Nntp-Posting-Host: lll-crg.llnl.gov Last week I posted about a problem with XmString. A couple people sent me useful suggestions, which I tried, but the problem persists, although I've now narrowed things down a bit more. I'm programming in C and UIL, using X11R4 and Motif 1.1. What's happening is that I can use XmStringCreateLtoR to create an XmString and set a label. So far, so good. However, when I try to use XmStringGetLtoR to retrieve that label, I always get back a null string! This is driving me crazy! I did a small test case to make sure that my routines for setting and retrieving labels work correctly. The test case worked fine. In the test case I used XtCreateManagedWidget to create a label widget, whereas in my real program, the label widget was created using UIL. Could this be the problem? Has anyone successfully retrieved label values using XmStringGetLtoR with UIL-created labels? I'm about to make a test case now using a UIL-created label widget, but thought I'd first whine to the net! There! Now I feel *a little* better! carol Carol Chapman Tel. (415) 423-7876 Livermore National Laboratory NEW --> chapman@.llnl.gov P. O. Box 808, L-572 "Are you in charge here?" Livermore, CA 94550 "No, but I'm full of ideas!" -- Dr. Who