Article View: comp.windows.ms.programmer
Article #4772 List Boxes in one window... Transfering Information
From: Alexander Shinkar
Date: Fri, 14 Aug 1992 04:59
Date: Fri, 14 Aug 1992 04:59
40 lines
1848 bytes
1848 bytes
Hi, Maby some one out there could help me.
Im trying to open up a dialog box, that has 2 list boxes...
I cant seem to figure out what Im doing wrong...
I know that it is something to do with
TransferBuffer
I have to write it like that, so that when I click on the
AvailableListBox, the information gets transfered to the
SelectedListBox... (sort of like the printer and font stuff in windows)
Im using BC++ 3.0, win 3.1
Thanks in advance.
Alex
axs9017@hertz.njit.edu
here is the proc..
TLBoxWindow::TLBoxWindow() : TDialog(NULL, "CONTACT_SKILLS")
{
SelectedListBox = new TListBox(this, ID_SELECTED_LISTBOX);
SelectedListBoxData = new TListBoxData();
SelectedListBox->EnableTransfer();
AvailableListBox = new TListBox(this, ID_AVAILABLE_LISTBOX);
AvailableListBoxData = new TListBoxData();
AvailableListBox->EnableTransfer();
AvailableListBoxData->AddString("Kathy");
AvailableListBoxData->AddString("Dan",TRUE);
AvailableListBoxData->AddString("Mike");
TransferBuffer= &AvailableListBoxData;
TransferBuffer= &SelectedListBoxData;
EnableKBHandler(); // so focus goes to AvailableListBox, see also lboxtest.cpp
}
--
Is your job running? You'd better go catch it!
Technical Details
Message-ID:
<1992Aug14.045959.1689@njitgw.njit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!njitgw.njit.edu!hertz.njit.edu!axs9017References:
<1992Aug11.220535.14031@u.washington.edu> <1992Aug12.183957.27242@rulway.LeidenUniv.nl>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!njitgw.njit.edu!hertz.njit.edu!axs9017 From: axs9017@hertz.njit.edu (Alexander Shinkar) Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc Subject: 2 List Boxes in one window... Transfering Information Message-ID: <1992Aug14.045959.1689@njitgw.njit.edu> Date: 14 Aug 92 04:59:59 GMT References: <1992Aug11.220535.14031@u.washington.edu> <1992Aug12.183957.27242@rulway.LeidenUniv.nl> Sender: news@njit.edu Organization: New Jersey Institute of Technology, Newark, N.J. Lines: 40 Nntp-Posting-Host: hertz.njit.edu