/////////////////////////////////////////////////////////////////////////////
-// Name: tabctrl.cpp
+// Name: src/mac/classic/tabctrl.cpp
// Purpose: wxTabCtrl
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWidgets licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "tabctrl.h"
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+ #pragma hdrstop
#endif
-#include "wx/defs.h"
+#if wxUSE_TAB_DIALOG
-#include "wx/control.h"
#include "wx/tabctrl.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/control.h"
+#endif
+
#include "wx/mac/uma.h"
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl)
BEGIN_EVENT_TABLE(wxTabCtrl, wxControl)
END_EVENT_TABLE()
-#endif
wxTabCtrl::wxTabCtrl()
{
Rect bounds ;
Str255 title ;
-
+
m_imageList = NULL;
-
+
MacPreControlCreate( parent , id , wxEmptyString , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ;
-
- m_macControl = ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1,
+
+ m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1,
kControlTabSmallProc , (long) this ) ;
-
+
MacPostControlCreate() ;
- return TRUE ;
+ return true ;
}
wxTabCtrl::~wxTabCtrl()
bool wxTabCtrl::DeleteAllItems()
{
// TODO
- return FALSE;
+ return false;
}
// Delete an item
bool wxTabCtrl::DeleteItem(int item)
{
// TODO
- return FALSE;
+ return false;
}
// Get the selection
bool wxTabCtrl::GetItemRect(int item, wxRect& wxrect) const
{
// TODO
- return FALSE;
+ return false;
}
// Get the number of rows
bool wxTabCtrl::InsertItem(int item, const wxString& text, int imageId, void* data)
{
// TODO
- return FALSE;
+ return false;
}
// Set the selection
bool wxTabCtrl::SetItemText(int item, const wxString& text)
{
// TODO
- return FALSE;
+ return false;
}
// Set the image for an item
bool wxTabCtrl::SetItemImage(int item, int image)
{
// TODO
- return FALSE;
+ return false;
}
// Set the data for an item
bool wxTabCtrl::SetItemData(int item, void* data)
{
// TODO
- return FALSE;
+ return false;
}
// Set the size for a fixed-width tab control
{
}
+#endif // wxUSE_TAB_DIALOG