crouch@crunchie.axion.bt.co.uk (the man whose head expanded) (09/28/89)
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
swick@ATHENA.MIT.EDU (Ralph R. Swick) (09/28/89)
> I can't work out how to get from the filename to the > structure that XtSetTextSource requires. Look at XtDiskSourceCreate in DiskSrc.c. One of the reasons all this is undocumented is because it's radically changed for R4. Chris Peterson has made the interfaces much more regular and easier to use, but you shouldn't have much difficulty converting when the time comes, so hack away...
mleisher@nmsu.edu (Mark Leisher) (10/27/90)
Having recently fiddled the AsciiText widget for a special purpose application, I noticed that the Search/Replace/File Insert Popups use the AsciiText widget explicitly. Is R5 going to provide a Text widget resource to specify the widget class of the text widget used in the Search/Replace/File Insert?