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