#pragma implementation "toolbar.h"
#endif
+#ifdef __VMS
+#define XtDisplay XTDISPLAY
+#endif
+
#include "wx/wx.h"
#include "wx/app.h"
#include "wx/timer.h"
// ----------------------------------------------------------------------------
#if !USE_SHARED_LIBRARY
-IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxControl)
+IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxToolBarBase)
#endif
// ----------------------------------------------------------------------------
m_windowId = id;
SetName(name);
- m_backgroundColour = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE);
+ m_backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
m_foregroundColour = parent->GetForegroundColour();
m_windowStyle = style;
// Separator spacing
const int separatorSize = GetToolSeparation(); // 8;
wxSize margins = GetToolMargins();
- wxSize packing = GetToolPacking();
+ int packing = GetToolPacking();
int marginX = margins.x;
int marginY = margins.y;
switch ( tool->GetStyle() )
{
case wxTOOL_STYLE_CONTROL:
+ {
wxControl* control = tool->GetControl();
wxSize sz = control->GetSize();
- wxSize pos = control->GetPosition();
+ wxPoint pos = control->GetPosition();
control->Move(currentX, pos.y);
- currentX += sz.x + packing.x;
+ currentX += sz.x + packing;
break;
-
+ }
case wxTOOL_STYLE_SEPARATOR:
currentX += separatorSize;
break;
XmNwidth, &width,
XmNheight, & height,
NULL);
- currentX += width + packing.x;
+ currentX += width + packing;
buttonHeight = wxMax(buttonHeight, height);
}