ha@CS.PURDUE.EDU (03/20/89)
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: <begin quote> XtNsource This specifies a new Source. The default is StringSrc. <end quote> 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