- wxString labelOld = m_label;
- m_indexAccel = FindAccelIndex(label, &m_label);
-
- if ( m_label != labelOld )
- {
- Refresh();
- }
-}
-
-wxString wxControl::GetLabel() const
-{
- return m_label;
-}
-
-// ----------------------------------------------------------------------------
-// focus/activation handling
-// ----------------------------------------------------------------------------
-
-void wxControl::OnFocus(wxFocusEvent& event)
-{
- if ( m_handler && m_handler->HandleFocus(this, event) )
- Refresh();
- else
- event.Skip();
-}
-
-void wxControl::OnActivate(wxActivateEvent& event)
-{
- if ( m_handler && m_handler->HandleActivation(this, event.GetActive()) )
- Refresh();
- else
- event.Skip();
-}
-
-// ----------------------------------------------------------------------------
-// input processing
-// ----------------------------------------------------------------------------
-
-void wxControl::CreateInputHandler(const wxString& inphandler)
-{
- m_handler = wxTheme::Get()->GetInputHandler(inphandler);
-}