IMplement SetFilterINdex()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2002-07-28 10:16:50 +00:00
parent 26a0063198
commit 04ea7f93e2

View File

@ -1211,6 +1211,14 @@ wxFileDialog::~wxFileDialog()
}
}
void wxFileDialog::SetFilterIndex( int filterindex )
{
m_choice->SetSelection( filterindex );
wxCommandEvent event;
event.SetInt( filterindex );
OnChoice( event );
}
void wxFileDialog::OnChoice( wxCommandEvent &event )
{
int index = (int)event.GetInt();