Newsgroups: comp.windows.x.motif
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!wuarchive!uunet!bellcore!porthos!rruxc!wws
From: wws@rruxc.uucp (Still Searching)
Subject: Re: Festering Motif XmList Widget
Organization: Bellcore, Livingston, NJ
Date: Thu, 23 May 91 23:16:46 GMT
Message-ID: <1991May23.231646.20719@porthos.cc.bellcore.com>
Summary: would a Form widget help?
References: <1991May23.201048.2398@bwdls61.bnr.ca>
Keywords: list-widget, resizing, titles
Sender: netnews@porthos.cc.bellcore.com (USENET System Software)

In article <1991May23.201048.2398@bwdls61.bnr.ca>, mleech@bnr.ca (Marcus Leech) writes:
> We use a XmList widget in Motif with titles (XmLabel) outside of the list widget
>   carefully arranged to line up with the contents of the list.
>   The problem is that this breaks horribly when you resize the thing.
> 
> I've used other toolkits that had list widgets whose title fields 
>   were resources associated with the widget, and where individual
>   fields within a list-element were settable.  This allowed resizing 
>   of the widget without effort.  Are there plans for this for a future 
>   version of Motif?
> 
> Can anyone think of any easy-to-implement workarounds?

I'm not sure if this will work for you, but I've solved all of my resize
problems by placing all of my widgets inside a Form widget and setting
attachments on all four sides of each - Top, Bottom, Left, Right - with
ATTACH_POSITION.  Since ATTACH_POSITION is the percentage of distance in
either direction, this works beautifully for me.

So, I would try placing the XmLabel and XmList widgets inside a Form widget
and experiment with the positions until it looks right.

Wayne Scott
Bellcore
----------------------------------------------
	wws@bcr.cc.bellcore.com
I'm just a soul whose intentions are good,
Oh Lord, please don't let me be misunderstood.
