Avoid problems with events that might be sent during creation of controls.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1377,15 +1377,17 @@ void MyPanel::OnCombo( wxCommandEvent &event )
|
|||||||
|
|
||||||
void MyPanel::OnComboTextChanged(wxCommandEvent& event)
|
void MyPanel::OnComboTextChanged(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
wxLogMessage(wxT("EVT_TEXT for the combobox: \"%s\" (event) or \"%s\" (control)."),
|
if (m_combo)
|
||||||
event.GetString().c_str(),
|
wxLogMessage(wxT("EVT_TEXT for the combobox: \"%s\" (event) or \"%s\" (control)."),
|
||||||
m_combo->GetValue().c_str());
|
event.GetString().c_str(),
|
||||||
|
m_combo->GetValue().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyPanel::OnComboTextEnter(wxCommandEvent& WXUNUSED(event))
|
void MyPanel::OnComboTextEnter(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
wxLogMessage(_T("Enter pressed in the combobox: value is '%s'."),
|
if (m_combo)
|
||||||
m_combo->GetValue().c_str());
|
wxLogMessage(_T("Enter pressed in the combobox: value is '%s'."),
|
||||||
|
m_combo->GetValue().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyPanel::OnComboButtons( wxCommandEvent &event )
|
void MyPanel::OnComboButtons( wxCommandEvent &event )
|
||||||
|
Reference in New Issue
Block a user