Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!sci.ccny.cuny.edu!phri!marob!slhisc!paul From: paul@slhisc.uucp (Paul Tam) Newsgroups: comp.windows.x.motif Subject: XmString type converter Message-ID: <1991Jan31.143450.24173@slhisc.uucp> Date: 31 Jan 91 14:34:50 GMT Sender: Paul Tam Organization: Shearson Lehman Brother, Inc. Lines: 28 I have posted this question and have gotten no answer. Now I want to post the question again and hope people outthere be able to help me with this. This is a common problem with motif labelString. Resource manager can't handle multiple line label string specified in resource file . Someone mentioned using a self-defined type converter. So I started out testing the converter concept. So far I have been able to define a converter, add the converter, and the converter is called when widgets are created. In the converter function, I convert the label string into XmString type by using XmStringCreateLtoR. I also use XmStringLength to find out the length of the XmString and store them back to the return struct. However, the application blows up after returning from the converter. Does anybody have experience with labelString converter ? Or know what is going when returning from the converter. Another question is does motif 1.0.3 with X11 R3 fully support self-defined type converter. The reason I ask this question is that when I put the XtAddConverter function call right after XtInitialize, the converter was never invoked. If I move it down a little bit then It get called. Strange!! I hope someone can help me with this and thanks to all you news readers.