#include <Xm/RowColumn.h>
#include <Xm/Scale.h>
-#include <wx/motif/private.h>
+#include "wx/motif/private.h"
void wxSliderCallback (Widget widget, XtPointer clientData, XmScaleCallbackStruct * cbs);
const wxSize& size, long style,
const wxValidator& validator,
const wxString& name)
-{
+{
+ if ( !((style & wxSL_HORIZONTAL) || (style & wxSL_VERTICAL)) )
+ style |= wxSL_HORIZONTAL;
+
SetName(name);
SetValidator(validator);
m_backgroundColour = parent->GetBackgroundColour();
}
// For trackbars only
-void wxSlider::SetTickFreq(int n, int pos)
+void wxSlider::SetTickFreq(int n, int WXUNUSED(pos))
{
// Not implemented in Motif
m_tickFreq = n;