home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.tools
- Path: sparky!uunet!usc!sdd.hp.com!saimiri.primate.wisc.edu!caen!spool.mu.edu!umn.edu!staff.tc.umn.edu!kimmel
- From: kimmel@staff.tc.umn.edu (Eric Kimmel)
- Subject: Re: Fonts in OWL listboxes
- Message-ID: <1992Dec16.045018.29152@news2.cis.umn.edu>
- Keywords: owl
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Nntp-Posting-Host: staff.tc.umn.edu
- Organization: University of Minnesota
- References: <5713@krafla.rhi.hi.is>
- Date: Wed, 16 Dec 1992 04:50:18 GMT
- Lines: 26
-
- In article <5713@krafla.rhi.hi.is> kristfin@rhi.hi.is (Kristjan Thor Finnsson) writes:
- >
- >How can I change the font in a listbox?
- >
- >I'm doing a simple phonebook program for windows. The main window of the
- >program contains a listbox that is used to look through the phone book.
- >I need to change the font in the listbox so the font will be fixed so the
- >entry's will line up nicely.
- >
- >Any help is good help.
- >
- >If this is a silly question then just e-mail me but don't frie my :=)
- >
- A better solution would be to turn on LBS_MULTICOLUMN for your listbox.
- Then you can send it a LB_SETTABSTOPS message with an array of tab stops
- such as {100,150,220}. When you add a string to your listbox just add
- tabs in the string (sprintf(AddString,"%s\x09%s\x09%s",Name,AreaCode,Phone))
- and send them off! You'll have to expiriment with the tab stops, but it
- will turn out quite nice. And you won't have to worry about modifying
- the ListBox class...
-
- >------
- >Kristjan Thor Finnsson. Math/CS student, University of Iceland.
- >Internet: kristfin@rhi.hi.is
-
- -Rick
-