]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/combobox.cpp
cleanup magic number usage and comments
[wxWidgets.git] / src / mac / carbon / combobox.cpp
index 71a386b3da18aaeb7b8998cf5a850657d16d0b9a..56238d61d6dcb71cd0aa43f685ef6838f3409913 100644 (file)
 #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)
 
+WX_DELEGATE_TO_CONTROL_CONTAINER(wxComboBox)
+
+BEGIN_EVENT_TABLE(wxComboBox, wxControl)
+    WX_EVENT_TABLE_CONTROL_CONTAINER(wxComboBox)
+END_EVENT_TABLE()
+
 
 static int nextPopUpMenuId = 1000 ;
 
@@ -313,12 +320,6 @@ bool wxComboBox::Show(bool show)
     return true;
 }
 
-void wxComboBox::SetFocus()
-{
-    if ( m_text != NULL)
-        m_text->SetFocus();
-}
-
 void wxComboBox::DelegateTextChanged( const wxString& value )
 {
     SetStringSelection( value );
@@ -329,6 +330,11 @@ void wxComboBox::DelegateChoice( const wxString& value )
     SetStringSelection( value );
 }
 
+void wxComboBox::Init()
+{
+    m_container.SetContainerWindow(this);
+}
+
 bool wxComboBox::Create(wxWindow *parent,
     wxWindowID id,
     const wxString& value,