#include <wx/motif/private.h>
-void wxScrollBarCallback(Widget widget, XtPointer clientData,
+static void wxScrollBarCallback(Widget widget, XtPointer clientData,
XmScaleCallbackStruct *cbs);
#if !USE_SHARED_LIBRARY
return FALSE;
parent->AddChild(this);
SetName(name);
- SetValidator(validator);
+ m_backgroundColour = parent->GetBackgroundColour();
+ m_foregroundColour = parent->GetForegroundColour();
+ SetValidator(validator);
m_windowStyle = style;
SetCanAddEventHandler(TRUE);
AttachWidget (parent, m_mainWidget, (WXWidget) NULL, x, y, width, height);
- ChangeColour(m_mainWidget);
+ ChangeBackgroundColour();
return TRUE;
}
{
}
-void wxScrollBar::SetPosition(int pos)
+void wxScrollBar::SetThumbPosition(int pos)
{
if (m_mainWidget)
{
}
}
-int wxScrollBar::GetPosition() const
+int wxScrollBar::GetThumbPosition() const
{
if (m_mainWidget)
{
ProcessCommand(event);
}
-void wxScrollBarCallback(Widget widget, XtPointer clientData,
+void wxScrollBar::ChangeFont(bool keepOriginalSize)
+{
+ // TODO
+}
+
+void wxScrollBar::ChangeBackgroundColour()
+{
+ // TODO
+}
+
+void wxScrollBar::ChangeForegroundColour()
+{
+ // TODO
+}
+
+static void wxScrollBarCallback(Widget widget, XtPointer clientData,
XmScaleCallbackStruct *cbs)
{
wxScrollBar *scrollBar = (wxScrollBar *)clientData;