Path: utzoo!attcan!uunet!husc6!bloom-beacon!CS.PURDUE.EDU!ha From: ha@CS.PURDUE.EDU Newsgroups: comp.windows.x Subject: Xhp TextEdit Widget with disk source Message-ID: <8903200601.AA01305@medusa.cs.purdue.edu> Date: 20 Mar 89 06:00:59 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 35 I am using X11R3 Xhp widgets (with Martin Friedmann's fixes) on Sun 3/50. I am trying to use TextEdit widget to display an ascii file. Question: What value should I assign to XtNtextSource resource? If I do not assign anything to this resource, it causes a core dump. Note that this resource is mistakenly listed as XtNsourec in the documentation! The documentation for this resource says: XtNsource This specifies a new Source. The default is StringSrc. There are at least two errors in this. First, as mentioned above, XtNsource should have been XtNtextSource. Second, the default is actually NULL, not StringSrc. I couldn't find anything like "StringSrc" any where in the code. What are we supposed to specify if the default is not desirable (as in case of disk source, I suppose)? What does Source mean here? Also, for some reason, specifying "disksrc" for XtNsourceType resource does not work (i.e. resource conversion from "disksrc" to XwdiskSrc does not take place!) I have to explicitly assign XwdiskSrc to this resource. I will appreciate any help. Please email your response. Thanks. -- Hiralal Agrawal ha@cs.purdue.edu