ok, it does work - it's just that wxGTK doesn't

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-11-03 21:11:41 +00:00
parent d6c9c1b71e
commit 3d49ce4485
3 changed files with 9 additions and 12 deletions

View File

@@ -436,10 +436,6 @@ void wxSingleChoiceDialog::OnListBoxDClick(wxCommandEvent& WXUNUSED(event))
// wxMultiChoiceDialog
// ----------------------------------------------------------------------------
BEGIN_EVENT_TABLE(wxMultiChoiceDialog, wxDialog)
EVT_BUTTON(wxID_OK, wxMultiChoiceDialog::OnOK)
END_EVENT_TABLE()
IMPLEMENT_DYNAMIC_CLASS(wxMultiChoiceDialog, wxDialog)
bool wxMultiChoiceDialog::Create( wxWindow *parent,
@@ -453,7 +449,7 @@ bool wxMultiChoiceDialog::Create( wxWindow *parent,
if ( !wxAnyChoiceDialog::Create(parent, message, caption,
n, choices,
style, pos,
wxLB_ALWAYS_SB | wxLB_MULTIPLE) )
wxLB_ALWAYS_SB | wxLB_EXTENDED) )
return FALSE;
return TRUE;
@@ -468,7 +464,7 @@ void wxMultiChoiceDialog::SetSelections(const wxArrayInt& selections)
}
}
void wxMultiChoiceDialog::OnOK(wxCommandEvent& WXUNUSED(event))
bool wxMultiChoiceDialog::TransferDataFromWindow()
{
m_selections.Empty();
size_t count = m_listbox->GetCount();
@@ -478,5 +474,5 @@ void wxMultiChoiceDialog::OnOK(wxCommandEvent& WXUNUSED(event))
m_selections.Add(n);
}
EndModal(wxID_OK);
return TRUE;
}