arm@sps.com (Annette Myjak) (07/31/90)
I'm a novice X windows and Motif user, and also fairly new to the net, so please forgive if this subject has already been beaten to death. I am having difficulty creating a scrolled text widget (inside a form dialog). Using UIL I have specified the following scrolled window and text widgets: object req_doc_scroll : XmScrolledWindow { arguments { XmNx = 15; XmNy = 85; XmNwidth = 200; XmNheight = 100; XmNscrollingPolicy = XmAUTOMATIC; }; controls { XmText req_doc_text; }; }; object req_doc_text : XmText { arguments { XmNeditMode = XmMULTI_LINE_EDIT; XmNwordWrap = true; XmNcolumns = 35; XmNrows = 10; }; }; If I DON'T include the XmNscrollingPolicy = XmAUTOMATIC; line for the scrolled window widget, then the text wrap doesn't seem to work properly. (I type forever on a single line . . .) When I DO include the above line and let the window manager determine the size of the clipping window for the scrolled window widget, everything seems to work ok, but a clipping window slightly larger than a postage stamp is not exactly what I had in mind. When I DO include the above line and SET THE SIZE of the scrolled window widget, I have random difficulties with the widget(s) 'going off the deep end'; ie, the text disappears and the scroll bars just start flashing madly. (This is severe enough that none of the other windows or buttons in my application will recognize mouse clicks -- I have to go to another window outside of my application and kill the process related to my application.) Anybody else have this or similar problems? Any pointers as to what I've done wrong would be greatly appreciated!! (Or is this possibly some obscure little 'feature'??) Thanks in advance!! annette arm@sps.com
daver@dg.dg.com (David Rudolph) (07/31/90)
In article <259@sps.com> arm@sps.com (Annette Myjak) writes: > >When I DO include the above line and SET THE SIZE of the scrolled window >widget, I have random difficulties with the widget(s) 'going off the deep >end'; ie, the text disappears and the scroll bars just start flashing madly. I have had the same problem. When I reach the end of a line in a multiline text widget, sometimes the word correctly wraps to the next line, and sometimes things start flashing and I have to kill the application. Another problem I have had is that even when I set autoShowCursorPosition, the text does not scroll to show the line the cursor is on as I type several lines. Eventually, I can't see what I'm typing. ---------------------------------------------------------------------------- David Rudolph | phone: (508) 870-6914 Data General Corporation | email: daver@paint.dg.com or | daver@fs06.dg.com ----------------------------------------------------------------------------