projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed doubled-up key effects in wxTextCtrl by resetting m_lastMsg to 0
[wxWidgets.git]
/
src
/
motif
/
scrolbar.cpp
diff --git
a/src/motif/scrolbar.cpp
b/src/motif/scrolbar.cpp
index 52ef32cc554021ffec4bc62730d65d956568bd37..5bd38a4ee53ba900df16bfffcca865c922f3a842 100644
(file)
--- a/
src/motif/scrolbar.cpp
+++ b/
src/motif/scrolbar.cpp
@@
-102,7
+102,7
@@
wxScrollBar::~wxScrollBar()
{
}
{
}
-void wxScrollBar::SetPosition(int pos)
+void wxScrollBar::Set
Thumb
Position(int pos)
{
if (m_mainWidget)
{
{
if (m_mainWidget)
{
@@
-112,7
+112,7
@@
void wxScrollBar::SetPosition(int pos)
}
}
}
}
-int wxScrollBar::GetPosition() const
+int wxScrollBar::Get
Thumb
Position() const
{
if (m_mainWidget)
{
{
if (m_mainWidget)
{
@@
-148,23
+148,28
@@
void wxScrollBar::SetScrollbar(int position, int thumbSize, int range, int pageS
void wxScrollBar::Command(wxCommandEvent& event)
{
void wxScrollBar::Command(wxCommandEvent& event)
{
- SetPosition(event.m_commandInt);
+ Set
Thumb
Position(event.m_commandInt);
ProcessCommand(event);
}
void wxScrollBar::ChangeFont(bool keepOriginalSize)
{
// TODO
ProcessCommand(event);
}
void wxScrollBar::ChangeFont(bool keepOriginalSize)
{
// TODO
+ // Do anything for a scrollbar? A font will never be seen.
}
void wxScrollBar::ChangeBackgroundColour()
{
}
void wxScrollBar::ChangeBackgroundColour()
{
- // TODO
+ wxWindow::ChangeBackgroundColour();
+
+ XtVaSetValues ((Widget) GetMainWidget(),
+ XmNtroughColor, m_backgroundColour.AllocColour(XtDisplay((Widget) GetMainWidget())),
+ NULL);
}
void wxScrollBar::ChangeForegroundColour()
{
}
void wxScrollBar::ChangeForegroundColour()
{
- // TODO
+ wxWindow::ChangeForegroundColour();
}
static void wxScrollBarCallback(Widget widget, XtPointer clientData,
}
static void wxScrollBarCallback(Widget widget, XtPointer clientData,