- if (m_tools.Number() > 0)
- {
-
- Point localOrigin ;
- // Rect clipRect ;
- // WindowRef window ;
- // wxWindow *win ;
- int lx , ly ;
- lx = ly = 0 ;
- MacWindowToRootWindow( &lx , &ly ) ;
- localOrigin.v = ly ;
- localOrigin.h = lx ;
-
-// GetParent()->MacGetPortParams( &localOrigin , &clipRect , &window , &win ) ;
-
- Rect toolbarrect = { localOrigin.v ,localOrigin.h ,
- m_height + localOrigin.v , m_width + localOrigin.h} ;
- ControlFontStyleRec controlstyle ;
-
- controlstyle.flags = kControlUseFontMask ;
- controlstyle.font = kControlFontSmallSystemFont ;
-
- wxNode *node = m_tools.First();
- int noButtons = 0;
- int x = 0 ;
- wxSize toolSize = GetToolSize() ;
- int tw, th;
- GetSize(& tw, & th);
-
- int maxWidth = 0 ;
- int maxHeight = 0 ;
- int toolcount = 0 ;