Path: utzoo!attcan!uunet!munnari.oz.au!brolga!citrus.citr.uq.oz.au!geoff From: geoff@citrus.citr.uq.oz.au (Geoff Thompson) Newsgroups: comp.windows.x.motif Subject: List behaviour Message-ID: <1990Oct10.075743.28552@brolga.cc.uq.oz.au> Date: 10 Oct 90 07:57:43 GMT Sender: news@brolga.cc.uq.oz.au Reply-To: geoff@citrus.citr.uq.oz.au (Geoff Thompson) Organization: CiTR, University of Queensland, Brisbane, Australia Lines: 29 Nntp-Posting-Host: citrus.citr.uq.oz.au 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