Try to add enter support

This commit is contained in:
Andy Cedilnik 2002-10-09 16:26:02 -04:00
parent aef8110c36
commit b431046277
2 changed files with 8 additions and 0 deletions

View File

@ -214,6 +214,8 @@ cmMainFrame::cmMainFrame(const wxString& title, const wxSize& size)
(wxObjectEventFunction) &cmMainFrame::OnBinarySelected );
this->ConnectEvent( this->m_PathBinary, wxEVT_COMMAND_TEXT_UPDATED,
(wxObjectEventFunction) &cmMainFrame::OnBinaryUpdated );
this->ConnectEvent( this->m_PathBinary, wxEVT_COMMAND_TEXT_ENTER,
(wxObjectEventFunction) &cmMainFrame::OnBinaryAccepted );
this->ConnectEvent( this->m_GeneratorMenu, wxEVT_COMMAND_COMBOBOX_SELECTED,
(wxObjectEventFunction) &cmMainFrame::OnGeneratorSelected );
this->ConnectEvent( this->m_GeneratorMenu, wxEVT_COMMAND_TEXT_UPDATED,
@ -1191,6 +1193,11 @@ void cmMainFrame::ClearCache()
}
void cmMainFrame::OnBinaryAccepted(wxCommandEvent& event)
{
std::cout << "Pressed enter in binary field" << std::endl;
}
void cmMainFrame::OnBinarySelected(wxCommandEvent&)
{
if ( this->BuildDirectoryChanged() )

View File

@ -60,6 +60,7 @@ public:
void OnBrowseBinary(wxCommandEvent& event);
void OnBinarySelected(wxCommandEvent& event);
void OnBinaryUpdated(wxCommandEvent& event);
void OnBinaryAccepted(wxCommandEvent& event);
void OnShowAdvancedValues(wxCommandEvent& event);
void OnResize(wxSizeEvent& event);
void OnPropertyChanged(wxEvent& event);