Updates to (behaviour of) wxComboBox and wxSpinCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -601,8 +601,7 @@ void wxComboBox::OnChar( wxKeyEvent &event )
|
|||||||
event.SetEventObject( this );
|
event.SetEventObject( this );
|
||||||
GetEventHandler()->ProcessEvent( event );
|
GetEventHandler()->ProcessEvent( event );
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
// This will invoke the dialog default action, such
|
// This will invoke the dialog default action, such
|
||||||
// as the clicking the default button.
|
// as the clicking the default button.
|
||||||
|
|
||||||
@@ -620,7 +619,8 @@ void wxComboBox::OnChar( wxKeyEvent &event )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -77,7 +77,9 @@ gtk_spinctrl_text_changed_callback( GtkWidget *WXUNUSED(widget), wxSpinCtrl *win
|
|||||||
|
|
||||||
wxCommandEvent event( wxEVT_COMMAND_TEXT_UPDATED, win->GetId() );
|
wxCommandEvent event( wxEVT_COMMAND_TEXT_UPDATED, win->GetId() );
|
||||||
event.SetEventObject( win );
|
event.SetEventObject( win );
|
||||||
event.SetInt( win->GetValue() );
|
|
||||||
|
// see above
|
||||||
|
event.SetInt( (int)ceil(win->m_adjust->value) );
|
||||||
win->GetEventHandler()->ProcessEvent( event );
|
win->GetEventHandler()->ProcessEvent( event );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -601,8 +601,7 @@ void wxComboBox::OnChar( wxKeyEvent &event )
|
|||||||
event.SetEventObject( this );
|
event.SetEventObject( this );
|
||||||
GetEventHandler()->ProcessEvent( event );
|
GetEventHandler()->ProcessEvent( event );
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
// This will invoke the dialog default action, such
|
// This will invoke the dialog default action, such
|
||||||
// as the clicking the default button.
|
// as the clicking the default button.
|
||||||
|
|
||||||
@@ -620,7 +619,8 @@ void wxComboBox::OnChar( wxKeyEvent &event )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -77,7 +77,9 @@ gtk_spinctrl_text_changed_callback( GtkWidget *WXUNUSED(widget), wxSpinCtrl *win
|
|||||||
|
|
||||||
wxCommandEvent event( wxEVT_COMMAND_TEXT_UPDATED, win->GetId() );
|
wxCommandEvent event( wxEVT_COMMAND_TEXT_UPDATED, win->GetId() );
|
||||||
event.SetEventObject( win );
|
event.SetEventObject( win );
|
||||||
event.SetInt( win->GetValue() );
|
|
||||||
|
// see above
|
||||||
|
event.SetInt( (int)ceil(win->m_adjust->value) );
|
||||||
win->GetEventHandler()->ProcessEvent( event );
|
win->GetEventHandler()->ProcessEvent( event );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user