home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / tools / 1716 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.5 KB  |  40 lines

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