IMplement SetFilterINdex()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 )
|
void wxFileDialog::OnChoice( wxCommandEvent &event )
|
||||||
{
|
{
|
||||||
int index = (int)event.GetInt();
|
int index = (int)event.GetInt();
|
||||||
|
Reference in New Issue
Block a user