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:
parent
0db43f1ab6
commit
7c2151fa69
@ -1377,15 +1377,17 @@ void MyPanel::OnCombo( wxCommandEvent &event )
|
||||
|
||||
void MyPanel::OnComboTextChanged(wxCommandEvent& event)
|
||||
{
|
||||
wxLogMessage(wxT("EVT_TEXT for the combobox: \"%s\" (event) or \"%s\" (control)."),
|
||||
event.GetString().c_str(),
|
||||
m_combo->GetValue().c_str());
|
||||
if (m_combo)
|
||||
wxLogMessage(wxT("EVT_TEXT for the combobox: \"%s\" (event) or \"%s\" (control)."),
|
||||
event.GetString().c_str(),
|
||||
m_combo->GetValue().c_str());
|
||||
}
|
||||
|
||||
void MyPanel::OnComboTextEnter(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
wxLogMessage(_T("Enter pressed in the combobox: value is '%s'."),
|
||||
m_combo->GetValue().c_str());
|
||||
if (m_combo)
|
||||
wxLogMessage(_T("Enter pressed in the combobox: value is '%s'."),
|
||||
m_combo->GetValue().c_str());
|
||||
}
|
||||
|
||||
void MyPanel::OnComboButtons( wxCommandEvent &event )
|
||||
|
Loading…
Reference in New Issue
Block a user