// tree ctrl images for the normal, selected, expanded and
// expanded+selected states
- short m_images[wxTreeItemIcon_Max];
+ int m_images[wxTreeItemIcon_Max];
wxCoord m_x; // (virtual) offset from top
wxCoord m_y; // (virtual) offset from left
- short m_width; // width of this item
- unsigned char m_height; // height of this item
+ int m_width; // width of this item
+ int m_height; // height of this item
// use bitfields to save size
int m_isCollapsed :1;
x += image_w;
w -= image_w + 4;
#ifdef __WXMAC__
+ wxSize bs = DoGetBestSize() ;
// edit control height
- if ( h > 22 - 8 )
+ if ( h > bs.y - 8 )
{
- int diff = h - ( 22 - 8 ) ;
+ int diff = h - ( bs.y - 8 ) ;
h -= diff ;
y += diff / 2 ;
}
m_lastOnSame = false;
-#if defined( __WXMAC__ ) && __WXMAC_CARBON__
+#ifdef __WXMAC_CARBON__
m_normalFont.MacCreateThemeFont( kThemeViewsFont ) ;
#else
m_normalFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );