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);