chapman@lll-crg.llnl.gov (Carol Chapman) (04/15/91)
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