geoff@citrus.citr.uq.oz.au (Geoff Thompson) (10/10/90)
I am having trouble fixing the size of a List widget. Even if I set the width, the list widget always shrinks to neatly fit the longest list element. If I increase the size of the element, the list width expands to suit. This looks unsightly. Can I fix the width ? Strange behaviour also occurs if I make a ScrolledList. In this case, I can fix the width by giving the ScrolledWindow a dimension, but the vertical behaviour is very odd. As I add and remove elements, the height of the list and size of the vertical scroll bar changes. I thought that the number of visible elements would completely control the height of the list, but no. Any comments ? One point I noticed that took me a day or so to track down : if you have a bunch of PushButtons (or Labels) inside a RowColumn and you want the labels to be vertically centred in each button, it is not sufficient to tell the labels this, as such is the default. You must set resources in the RowColumn, viz: XmNentryAlignment and XmNisAligned. (RTFM, Geoff) Now if I could only figure out translations and setting focus I would be really cooking with gas. Happy Motifing, Geoff