]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/notebook.cpp
added spinctrl and corrected list of files for Mac OS X
[wxWidgets.git] / src / mac / carbon / notebook.cpp
index 3cb269c3cce1d5054d3974f186c7cf8b7af40c1d..862bbb205c8b2f06c7573d8d6b8341dc7a034ebd 100644 (file)
@@ -41,6 +41,9 @@ const short kwxMacTabBottomMargin = 16 ;
 // event table
 // ----------------------------------------------------------------------------
 
+DEFINE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)
+DEFINE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)
+
 BEGIN_EVENT_TABLE(wxNotebook, wxControl)
     EVT_NOTEBOOK_PAGE_CHANGED(-1, wxNotebook::OnSelChange)
 
@@ -254,8 +257,7 @@ bool wxNotebook::InsertPage(int nPage,
                
                tie.version = 0 ;
                tie.iconSuiteID = 0 ;
-               strcpy( (char*) tie.name , strText ) ;
-               c2pstr( (char*) tie.name ) ;    
+               c2pstrcpy( (StringPtr) tie.name , strText ) ;
                SetControlData( m_macControl, nPage + 1, kControlTabInfoTag , sizeof( ControlTabInfoRec) , (char*) &tie ) ;
                SetControlData( m_macControl, m_nSelection + 1, kControlTabEnabledFlagTag, sizeof( Boolean ), (Ptr)&enabled );