#include "wx/intl.h"
#include "wx/log.h"
#include "wx/utils.h"
+ #include "wx/panel.h"
#endif
-#include "wx/panel.h"
#include "wx/imaglist.h"
#include "wx/bitmap.h"
#include "wx/fontutil.h"
/* set the label text */
nb_page->m_text = text;
- if (nb_page->m_text.empty()) nb_page->m_text = wxT("");
+ if (nb_page->m_text.empty()) nb_page->m_text = wxEmptyString;
nb_page->m_label = GTK_LABEL( gtk_label_new(wxGTK_CONV(nb_page->m_text)) );
gtk_box_pack_end( GTK_BOX(nb_page->m_box), GTK_WIDGET(nb_page->m_label), FALSE, FALSE, m_padding );
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/utils.h"
+ #include "wx/panel.h"
#endif
-#include "wx/panel.h"
#include "wx/imaglist.h"
#include "wx/bitmap.h"
#include "wx/fontutil.h"
/* set the label text */
nb_page->m_text = text;
- if (nb_page->m_text.empty()) nb_page->m_text = wxT("");
+ if (nb_page->m_text.empty()) nb_page->m_text = wxEmptyString;
nb_page->m_label = GTK_LABEL( gtk_label_new(wxGTK_CONV(nb_page->m_text)) );
gtk_box_pack_end( GTK_BOX(nb_page->m_box), GTK_WIDGET(nb_page->m_label), FALSE, FALSE, m_padding );
/////////////////////////////////////////////////////////////////////////////
-// Name: button.cpp
+// Name: src/mac/carbon/button.cpp
// Purpose: wxButton
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#include "wx/button.h"
-#include "wx/panel.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/panel.h"
+#endif
+
#include "wx/stockitem.h"
#include "wx/mac/uma.h"
Rect bestsize = { 0 , 0 , 0 , 0 } ;
m_peer->GetBestRect( &bestsize ) ;
-
+
int wBtn;
if ( EmptyRect( &bestsize ) )
{
- wBtn = m_label.Length() * charspace + 12 ;
+ wBtn = m_label.length() * charspace + 12 ;
}
else
{
sz.y = bestsize.bottom - bestsize.top ;
}
- if ((wBtn > sz.x) || ( GetWindowStyle() & wxBU_EXACTFIT))
+ if ((wBtn > sz.x) || ( GetWindowStyle() & wxBU_EXACTFIT))
sz.x = wBtn;
return sz ;
wxSize wxButton::GetDefaultSize()
{
- int wBtn = 70 ;
+ int wBtn = 70 ;
int hBtn = 20 ;
return wxSize(wBtn, hBtn);
ProcessCommand(event);
}
-wxInt32 wxButton::MacControlHit(WXEVENTHANDLERREF WXUNUSED(handler) , WXEVENTREF WXUNUSED(event) )
+wxInt32 wxButton::MacControlHit(WXEVENTHANDLERREF WXUNUSED(handler) , WXEVENTREF WXUNUSED(event) )
{
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId);
event.SetEventObject(this);
return noErr;
}
-
#endif
#include "wx/button.h"
-#include "wx/panel.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/panel.h"
+#endif
+
#include "wx/stockitem.h"
IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
{
wxSize sz = GetDefaultSize() ;
- int wBtn = m_label.Length() * 8 + 12 + 2 * kMacOSXHorizontalBorder ;
+ int wBtn = m_label.length() * 8 + 12 + 2 * kMacOSXHorizontalBorder ;
if (wBtn > sz.x) sz.x = wBtn;