home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!rpi!psinntp!psinntp!bepcp!jnicholson
- From: jnicholson@bowker.com (Jim Nicholson)
- Newsgroups: comp.lang.pascal
- Subject: TDialog.SetData & Listboxes
- Message-ID: <RTBkqB1w164w@bowker.com>
- Date: Fri, 04 Sep 92 01:59:26 EDT
- Organization: Bowker Electronic Publishing, New Providence NJ
- Lines: 21
-
- Here's a TVision question.
-
- I appear to be having a problem getting TDIalog.SetDAta to initialize a
- listbox. I've got a simple dialog containing a listbox and two buttons. My
- transfer record looks like
- DataRec : record
- ListBoxVals : TListBoxRec;
- end;
- I've defined TListBoxRec as per BI tech support (it's a record containing a
- PString collection and a Word);
-
- Normally, I run a dialog box using an "execDialog" wrapper function. What
- this does (pseudocode) is
- Create a new Tdialog instance P
- Call P^.SetData(DataRec);
- ExecView the dialog
- Call P^.GetData(DataRec)
- Dispose of the TDialog instance
-
- This approach works for any control type other than TListBOx. Can someone
- help?
-