[comp.windows.x.motif] XmScrolledText Positioning in a XmForm

cuweiss.US2.oramail@us.oracle.com ("Connie Weiss ", note the U =>) (08/16/90)

Hi all,

For a certain menu command, my application main window has to
include two scrolled text widgets (one on top of another).  
In order for them to stay "glued" together when resizing, 
I have put them in a form using the attachment resources.  

What I am finding with the bottom scrolled text widget is that 
no matter what I try, it will attach itself to the top of 
the form.  What I want it to do is attach itself to the bottom 
of the top scrolled text widget (in uil speak, this is 
XmNtopAttachment = XmATTACH_WIDGET; XmNtopWidget = 
XmScrolledText my_top_widget). Setting XmNrubberPositioning 
to True does not fix the problem; in fact when this resource 
is True, it then ignores the setting for XmNleftAttachment 
(which is to the form).  I have been successful getting a 
label and a scrolled window to attach properly in the form, 
but scrolled text just isn't getting it.

Any insights/suggestions/workarounds?  I'm using ISC Motif, 
v1.0.

Connie Weiss
(cuweiss@oracle.com)

nazgul@alphalpha.com (Kee Hinckley) (08/16/90)

> What I am finding with the bottom scrolled text widget is that 
> no matter what I try, it will attach itself to the top of 
> the form.  What I want it to do is attach itself to the bottom 
Set the constraints after creating the text, using XtParent(widget).
Otherwise you are setting constraints on the widget when you want is
the scrolledwindow parent.


Alphalpha Software, Inc.	|	motif-request@alphalpha.com
nazgul@alphalpha.com		|-----------------------------------
617/646-7703 (voice/fax)	|	Proline BBS: 617/641-3722

I'm not sure which upsets me more; that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

-------