[comp.windows.x.motif] HELP Motif Text Widget

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