home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1318 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.8 KB

  1. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!njitgw.njit.edu!hertz.njit.edu!axs9017
  2. From: axs9017@hertz.njit.edu (Alexander Shinkar)
  3. Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
  4. Subject: 2 List Boxes in one window... Transfering Information
  5. Message-ID: <1992Aug14.045959.1689@njitgw.njit.edu>
  6. Date: 14 Aug 92 04:59:59 GMT
  7. References: <1992Aug11.220535.14031@u.washington.edu> <1992Aug12.183957.27242@rulway.LeidenUniv.nl>
  8. Sender: news@njit.edu
  9. Organization: New Jersey Institute of Technology, Newark, N.J.
  10. Lines: 40
  11. Nntp-Posting-Host: hertz.njit.edu
  12.  
  13. Hi, Maby some one out there could help me.
  14. Im trying to open up a dialog box, that has 2 list boxes...
  15. I cant seem to figure out what Im doing wrong...
  16. I know that it is something to do with
  17.  
  18. TransferBuffer
  19.  
  20. I have to write it like that, so that when I click on the
  21. AvailableListBox, the information gets transfered to the
  22. SelectedListBox... (sort of like the printer and font stuff in windows)
  23.  
  24. Im using BC++ 3.0, win 3.1
  25. Thanks in advance.
  26. Alex
  27. axs9017@hertz.njit.edu
  28.  
  29. here is the proc..
  30. TLBoxWindow::TLBoxWindow() : TDialog(NULL, "CONTACT_SKILLS")
  31. {
  32.  
  33.     SelectedListBox = new TListBox(this, ID_SELECTED_LISTBOX);
  34.     SelectedListBoxData = new TListBoxData();
  35.     SelectedListBox->EnableTransfer();
  36.  
  37.     AvailableListBox = new TListBox(this, ID_AVAILABLE_LISTBOX);
  38.     AvailableListBoxData = new TListBoxData();
  39.     AvailableListBox->EnableTransfer();
  40.  
  41.     AvailableListBoxData->AddString("Kathy");
  42.     AvailableListBoxData->AddString("Dan",TRUE);
  43.     AvailableListBoxData->AddString("Mike");
  44.  
  45.     TransferBuffer= &AvailableListBoxData;
  46.     TransferBuffer= &SelectedListBoxData;
  47.  
  48.     EnableKBHandler(); // so focus goes to AvailableListBox, see also lboxtest.cpp
  49.  
  50. }
  51. -- 
  52. Is your job running? You'd better go catch it!
  53.