Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ucsd!ucsdhub!hp-sdd!hplabs!hpda!hp-sde!hpfcdc!hpfclp!diamant
From: diamant@hpfclp.SDE.HP.COM (John Diamant)
Newsgroups: comp.windows.x
Subject: Re: Athena text widgets
Message-ID: <9740040@hpfclp.SDE.HP.COM>
Date: 15 Jul 88 03:11:36 GMT
References: <6190@bloom-beacon.MIT.EDU>
Organization: HP SDE, Fort Collins, CO
Lines: 17

> I'm using the Athena widgets in an X application, and I'm having some trouble
> with the text widget.  I would like to display some text in the widget, and
> subsequently change the text from time to time.  It doesn't like it when
> I try to change XtNstring, and if I directly change the string that
> XtNstring refers to, nothing happens.  Does anyone know the right thing
> to do?

Are you changing it to something larger than it was originally.  If I remember
correctly, the text widget sets the maximum size to the initial string and
only allocates that much space.  You probably have to set the maximum size
larger (when you create the widget) before initializing the string to a
particular value.


John Diamant
Software Development Environments
Hewlett-Packard Co.		ARPA Internet: diamant@hpfclp.sde.hp.com
Fort Collins, CO		UUCP:  {hplabs,hpfcla}!hpfclp!diamant