git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37424
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/combobox.h"
#include "wx/button.h"
#include "wx/menu.h"
#include "wx/combobox.h"
#include "wx/button.h"
#include "wx/menu.h"
+#include "wx/containr.h"
#include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxComboBox, wxControl)
#include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxComboBox, wxControl)
+WX_DELEGATE_TO_CONTROL_CONTAINER(wxComboBox)
+
+BEGIN_EVENT_TABLE(wxComboBox, wxControl)
+ WX_EVENT_TABLE_CONTROL_CONTAINER(wxComboBox)
+END_EVENT_TABLE()
+
static int nextPopUpMenuId = 1000 ;
static int nextPopUpMenuId = 1000 ;
EVT_CHOICE(-1, wxComboBoxChoice::OnChoice)
END_EVENT_TABLE()
EVT_CHOICE(-1, wxComboBoxChoice::OnChoice)
END_EVENT_TABLE()
+wxComboBox::wxComboBox()
+{
+ m_container.SetContainerWindow(this);
+}
+
wxComboBox::~wxComboBox()
{
// delete client objects
wxComboBox::~wxComboBox()
{
// delete client objects
-void wxComboBox::SetFocus()
-{
- if ( m_text != NULL)
- m_text->SetFocus();
-}
-
void wxComboBox::DelegateTextChanged( const wxString& value )
{
SetStringSelection( value );
void wxComboBox::DelegateTextChanged( const wxString& value )
{
SetStringSelection( value );
#include "wx/spinbutt.h"
#include "wx/spinctrl.h"
#include "wx/textctrl.h"
#include "wx/spinbutt.h"
#include "wx/spinctrl.h"
#include "wx/textctrl.h"
+#include "wx/containr.h"
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
// constants
IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrl, wxControl)
IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrl, wxControl)
+BEGIN_EVENT_TABLE(wxSpinCtrl, wxControl)
+ WX_EVENT_TABLE_CONTROL_CONTAINER(wxSpinCtrl)
+END_EVENT_TABLE()
+
+WX_DELEGATE_TO_CONTROL_CONTAINER(wxSpinCtrl)
+
+
// ============================================================================
// implementation
// ============================================================================
// ============================================================================
// implementation
// ============================================================================
{
m_text = NULL;
m_btn = NULL;
{
m_text = NULL;
m_btn = NULL;
+ m_container.SetContainerWindow(this);
}
bool wxSpinCtrl::Create(wxWindow *parent,
}
bool wxSpinCtrl::Create(wxWindow *parent,
-void wxSpinCtrl::SetFocus()
-{
- if ( m_text != NULL) {
- m_text->SetFocus();
- }
-}
-
// ----------------------------------------------------------------------------
// value and range access
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// value and range access
// ----------------------------------------------------------------------------