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

  1. Path: sparky!uunet!usc!rpi!psinntp!psinntp!bepcp!jnicholson
  2. From: jnicholson@bowker.com (Jim Nicholson)
  3. Newsgroups: comp.lang.pascal
  4. Subject: TDialog.SetData & Listboxes
  5. Message-ID: <RTBkqB1w164w@bowker.com>
  6. Date: Fri, 04 Sep 92 01:59:26 EDT
  7. Organization: Bowker Electronic Publishing, New Providence NJ
  8. Lines: 21
  9.  
  10. Here's a TVision question.
  11.  
  12. I appear to be having a problem getting TDIalog.SetDAta to initialize a
  13. listbox.  I've got a simple dialog containing a listbox and two buttons. My
  14. transfer record looks like
  15.    DataRec : record
  16.        ListBoxVals : TListBoxRec;
  17.        end;
  18. I've defined TListBoxRec as per BI tech support (it's a record containing a
  19. PString collection and a Word);
  20.  
  21. Normally, I run a dialog box using an "execDialog" wrapper function.  What
  22. this does (pseudocode) is
  23.    Create a new Tdialog instance P
  24.    Call P^.SetData(DataRec);
  25.    ExecView the dialog
  26.    Call P^.GetData(DataRec)
  27.    Dispose of the TDialog instance
  28.  
  29. This approach works for any control type other than TListBOx.  Can someone
  30. help?
  31.