[comp.windows.x.motif] Text Widgets

nazgul@alphalpha.com (Kee Hinckley) (07/09/90)

I have a paned window with multiple multiline text widgets in it.
I'd like the widgets to always be at least as wide as the paned
window.  If they have to be larger (because the existing text, or
the text that the user types extends further) I would like them
to have scrollbars added (and they should start scrolling as the
user types (currently the user just types off the edge and can't
see what is happening).

I would further like to ensure that the text area, even if started
with no text in it, is as tall as the current pane allows.  Basically
it should always fill the pane.

For single line text widgets, I'd like to also ensure that they are
always as wide as their parent.

This doesn't seem unreasonable, but I can't seem to find any combination
of things that will make it happen.  At this point I'd even settle
for querying the parent size and setting the child to that size,
but then I'd have to deal with resizing and everything else.

Does anyone have an answer to this?

						-kee


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.

-------