Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!sdd.hp.com!elroy.jpl.nasa.gov!jpl-devvax!david From: david@jpl-devvax.JPL.NASA.GOV (David E. Smyth) Newsgroups: comp.windows.x.motif Subject: Re: Multi-line labels Keywords: labels Message-ID: <9596@jpl-devvax.JPL.NASA.GOV> Date: 20 Sep 90 23:27:46 GMT References: <1990Aug21.000632.25880@elroy.jpl.nasa.gov> Reply-To: david@jpl-devvax.JPL.NASA.GOV (David E. Smyth) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 23 ems@socrates.jpl.nasa.gov writes: > > Is it possible to create multi-line labels >through the resource file? XmStringCreateLtoR >does the job correctly in the program, but I'd rather >have the label set in the resourse file. Write a string to XmString converter which looks for \n. Simple, really. Use the same name that Motif uses, and make sure the linker sees your converter before it sees the Motif converter, and you are golden. Do a name search on your motf library to figure out the name you should export. ------------------------------------------------------------------------- David Smyth david@jpl-devvax.jpl.nasa.gov Senior Software Engineer, seismo!cit-vax!jpl-devvax!david X and Object Guru. (818)393-0983 Jet Propulsion Lab, M/S 230-103, 4800 Oak Grove Drive, Pasadena, CA 91109 ------------------------------------------------------------------------- Life is tough: vacation in the South Pacific, work in Southern California! -------------------------------------------------------------------------