Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!elroy.jpl.nasa.gov!ncar!gatech!hubcap!ncrcae!ncr-sd!SanDiego.NCR.COM!tortuga!kshafer From: kshafer@tortuga.SanDiego.NCR.COM (Keith Shafer) Newsgroups: comp.windows.ms.programmer Subject: Re: List boxes and Edit Windows - Common problem Keywords: Help! Message-ID: <1991Jun12.151920.18401@donner.SanDiego.NCR.COM> Date: 12 Jun 91 15:19:20 GMT References: <1565@caslon.cs.arizona.edu> Sender: news@donner.SanDiego.NCR.COM (News Owner) Reply-To: kshafer@tortuga.SanDiego.NCR.COM (Keith Shafer) Organization: NCR Corporation, Rancho Bernardo Lines: 25 In article <1565@caslon.cs.arizona.edu> bam@cs.arizona.edu (Brett Alan Morrison) writes: >Does anyone out there know how to justify text in a list box? Like this: > >------------------------------ >|Item one 05/02/91 | Any suggestions? My problem is that >|Another item 05/02/91 | everything is proportianally spaced. >|I wan't this 05/02/91| >|And this 05/02/91| >------------------------------ In the resource file make sure the list box has the LBS_USETABSTOPS style and then separate the fields in the string with tabs. I always used the default tab stops but these can be set by sending the LB_SETTABSTOPS message to the dialog box. For information, see the SDK Reference Book 1 page 6-44 and the SDK Reference Book 2 page 8-43. >Thanks, > >Brett A. Morrison >bam@cs.arizona.edu - Keith ----- Keith.Shafer@SanDiegoCA.NCR.COM