home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5281 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  1.2 KB

  1. Path: sparky!uunet!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!rpi!scott.skidmore.edu!psinntp!psinntp!bepcp!jnicholson
  2. From: jnicholson@bowker.com (Jim Nicholson)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Answer for TListBox <> SetData problem
  5. Message-ID: <wR9TqB1w164w@bowker.com>
  6. Date: Wed, 09 Sep 92 10:29:31 EDT
  7. Organization: Bowker Electronic Publishing, New Providence NJ
  8. Lines: 23
  9.  
  10. In an earlier post, I asked if someone could help me with code to load a
  11. Tlistbox using the TDialog.SetData method.  Below are the results:
  12.  
  13. Borland provided me with a correct TListBoxRec:
  14.  
  15.    Type TListBoxRec = record
  16.        PS : PStringCollection;
  17.        Focused : integer;
  18.        end;
  19.  
  20. YURY@vaxc.cc.monash.edu.au pointed out that TListBoxRec should contain a
  21. pointer to a TCollection, rather than a TCollection.
  22.  
  23. Johnathan J. Stein <76576.470@CompuServe.COM> pointed out that if Focused is
  24. not initialized properly (ie., Focused > PS.Count), TListBox may not appear be
  25. responding to scroll bar clicks.
  26.  
  27. Thanks to everyone for their help.
  28.  
  29.  
  30. Jim Nicholson                          Internet: jnicholson@bowker.com
  31. Any opinions expressed are not         FidoNet : 1:2605/705.0
  32. necessarily my own                     Voice   : 908-665-2864
  33.