[comp.windows.x.motif] Festering Motif XmList Widget

mleech@bnr.ca (Marcus Leech) (05/24/91)

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?


-- 
Marcus Leech, 4Y11             Bell-Northern Research  |opinions expressed
mleech@bnr.ca                  P.O. Box 3511, Stn. C   |are my own, and not
VE3MDL@VE3JF.ON.CAN.NA         Ottawa, ON, CAN K1Y 4H7 |necessarily BNRs

wws@rruxc.uucp (Still Searching) (05/24/91)

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.