]> git.saurik.com Git - wxWidgets.git/commitdiff
IMplement SetFilterINdex()
authorRobert Roebling <robert@roebling.de>
Sun, 28 Jul 2002 10:16:50 +0000 (10:16 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 28 Jul 2002 10:16:50 +0000 (10:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/filedlgg.cpp

index 19570dec8832c0588a68e9d34d6d5df5c04646aa..086bb8f0cba1bba07fce81ad2f927274992cce35 100644 (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();