Re: NewEra, Listbox, display two columns
Posted in 1995
Catalin Badea <cat@tecsys.com> writes: >rnatesan@bactc.com (Ramki Natesan) wrote: >>Hi, >> Could some one tell me (in NewEra Motif 1.0) how to display >> two columns, two fields selected from database table, in Listbox. >> >>Thanks, >>-Ramki. >For each entry in the List Box, create an ixString with the first field >padded to its maximum length, add one or two spaces (to separate it from >the next field), and concatenate the second field. To achieve the two >column visual effect, you must use a fixed size font (e.g. Courrier). >Note: If the maximum size of the field is very large, you can always > truncate it to a reasonable value. --- snip --- I dunno, but using a fixed size font really looks awful (at least in Windoze). In Windows, you can send a message to the control to set tab stops. This allows you use a proportional font and still have the columns line up. --terry