Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!tut.cis.ohio-state.edu!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph R Swick) Newsgroups: comp.windows.x Subject: Re: Increasing the buffer size of an AsciiStringWidget Message-ID: <8902221356.AA26763@LYRE.MIT.EDU> Date: 22 Feb 89 13:56:09 GMT References: <631@arisia.Xerox.COM> Sender: daemon@bloom-beacon.MIT.EDU Organization: DEC/MIT Project Athena Lines: 10 Needs a fix to the AsciiStringWidget. The proper fix (to the Text widget) is fairly lengthy and won't happen before X11R4. A quick fix is possible inside AsciiString.SetValues, by destroying and re-creating the string source. In fact, you should be able to do this yourself by calling XtStringSourceCreate and then doing XtSetValues on XtNsource. To avoid a memory leak, you should also retrieve the old source and call XtStringSourceDestroy. XtStringSourceCreate is documented (poorly :-( in the Athena Widgets manual. The resources are the obvious subset of the AsciiText resources.