Path: utzoo!attcan!uunet!wuarchive!emory!hubcap!ncrcae!secola!krupczak From: krupczak@secola.Columbia.NCR.COM (Bobby Krupczak) Newsgroups: comp.windows.x.motif Subject: Questions about Motif Text widget Keywords: Motif, Text Widget Message-ID: <619@secola.Columbia.NCR.COM> Date: 26 Oct 90 19:12:13 GMT References: Motif text widget Reply-To: krupczak@secola.columbia.ncr.com (Bobby Krupczak) Organization: NCR Comten Columbia Lines: 17 Hi! I had some questions regarding the Motif text widget that I was hoping a motif expert could answer. I hope they havent been asked before. 1) I would like my newly created text widget to display some text read in from a file. Is it enough to use the XmNvalue resource of the text widget? Right now, I am reading the file into a buffer, using XmCreateString() to create a XmString and then using XtSetArg() to indicate to the widget that I want this text displayed. It does not seem to work. 2) If I set the resource XmNscrollVertical to true, should a scrollbar appear when the widget is realized? I have read the man page and it indicates so. Thanks in advance for the help Bobby