Replace dummy wxCommandEvent with dedicated API. Disable resizing of dialog only on subset of WinCEs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2006-03-07 11:41:51 +00:00
parent 089bac8ed4
commit b28a6678e0

View File

@ -999,7 +999,7 @@ bool wxGenericFileDialog::Create( wxWindow *parent,
if (!wxDialog::Create( parent, wxID_ANY, message, pos, wxDefaultSize, if (!wxDialog::Create( parent, wxID_ANY, message, pos, wxDefaultSize,
wxDEFAULT_DIALOG_STYLE wxDEFAULT_DIALOG_STYLE
#ifndef __WXWINCE__ #if !(defined(__PDA__) || defined(__SMARTPHONE__))
| wxRESIZE_BORDER | wxRESIZE_BORDER
#endif #endif
)) ))
@ -1296,9 +1296,7 @@ void wxGenericFileDialog::OnActivated( wxListEvent &event )
void wxGenericFileDialog::OnTextEnter( wxCommandEvent &WXUNUSED(event) ) void wxGenericFileDialog::OnTextEnter( wxCommandEvent &WXUNUSED(event) )
{ {
wxCommandEvent cevent(wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK); HandleAction( m_text->GetValue() );
cevent.SetEventObject( this );
GetEventHandler()->ProcessEvent( cevent );
} }
void wxGenericFileDialog::OnTextChange( wxCommandEvent &WXUNUSED(event) ) void wxGenericFileDialog::OnTextChange( wxCommandEvent &WXUNUSED(event) )
@ -1358,8 +1356,7 @@ void wxGenericFileDialog::HandleAction( const wxString &fn )
if (filename.empty()) if (filename.empty())
{ {
#ifdef __WXWINCE__ #ifdef __WXWINCE__
wxCommandEvent event; EndModal(wxID_CANCEL);
wxDialog::OnCancel(event);
#endif #endif
return; return;
} }
@ -1482,8 +1479,7 @@ void wxGenericFileDialog::HandleAction( const wxString &fn )
} }
} }
wxCommandEvent event; EndModal(wxID_OK);
wxDialog::OnOK(event);
} }
void wxGenericFileDialog::OnListOk( wxCommandEvent &WXUNUSED(event) ) void wxGenericFileDialog::OnListOk( wxCommandEvent &WXUNUSED(event) )