Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!ukc!axion!crunchie!crouch From: crouch@crunchie.axion.bt.co.uk (the man whose head expanded) Newsgroups: comp.windows.x Subject: athena text widget question Message-ID: <2664@zaphod.axion.bt.co.uk> Date: 27 Sep 89 17:44:19 GMT Sender: news@axion.bt.co.uk Reply-To: crouch@axion.bt.co.uk Lines: 26 Organisation: British Telecom Research Labs, Martlesham Heath, IPSWICH UK Hi, I'm having problems with the athena text widget. What I want to do is to display an empty text widget to begin with and later on display the contents of a file in it. At the moment I'm using asciiDiskWidgetClass and setting XtNfile to /dev/null. This quite happily creates an empty widget. However I can't work out how to later display a file in it. I suspect I should use XtSetTextSource(), but I can't work out how to get from the filename to the structure that XtSetTextSource requires. Anybody have any suggestions, pointers to manual pages or better still examples? Any help greatly received. Alternatively if anyone can tell me how to do the same thing using asciistringWidgetClass, that would also be appreaciated. Thanks, Chris ------------------------------------------------------------------------------ Chris Rouch crouch@axion.bt.co.uk RT3141, BTRL, Martlesham Heath, Ipswich, England. +44 473 646093 unspoilt by progress