// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "radioboxbase.h"
#pragma implementation "radiobox.h"
#endif
// headers
//-------------------------------------------------------------------------------------
-#include "wx/defs.h"
+#include "wx/wxprec.h"
+
#include "wx/arrstr.h"
#include "wx/radiobox.h"
m_peer = new wxMacControl() ;
verify_noerr(CreateGroupBoxControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, CFSTR("") ,
- true /*primary*/ , *m_peer ) ) ;
+ true /*primary*/ , m_peer->GetControlRefAddr() ) ) ;
for (i = 0; i < n; i++)
{
{
if (i&&((i%m_majorDim)==0)) // not to do for the zero button!
{
- if (m_windowStyle & wxRA_VERTICAL)
+ if (m_windowStyle & wxRA_SPECIFY_ROWS)
{
x_offset += maxWidth + charWidth;
y_offset = y_start;
int eachWidth, eachHeight;
int totWidth, totHeight;
- wxFont font = GetParent()->GetFont();
+ wxFont font = /*GetParent()->*/GetFont();
GetTextExtent(wxT("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"),
&charWidth, &charHeight, NULL, NULL, &font);