mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: ScrollBar style: bgcolor
git-svn-id: svn://ultimatepp.org/upp/trunk@11998 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9aa46d3e21
commit
e7aaad2c16
3 changed files with 3 additions and 3 deletions
|
|
@ -33,6 +33,7 @@ CH_STYLE(ScrollBar, Style, StyleDefault)
|
|||
Sb(right2, CtrlsImg::RA());
|
||||
isup2 = isdown2 = isleft2 = isright2 = false;
|
||||
thumbwidth = Null;
|
||||
bgcolor = SColorPaper();
|
||||
}
|
||||
|
||||
ScrollBar::ScrollBar() {
|
||||
|
|
@ -135,7 +136,7 @@ Rect ScrollBar::GetPartRect(int p) const {
|
|||
}
|
||||
|
||||
void ScrollBar::Paint(Draw& w) {
|
||||
w.DrawRect(GetSize(), SColorPaper());
|
||||
w.DrawRect(GetSize(), style->bgcolor);
|
||||
int cc;
|
||||
Size sz = style->through ? GetSize() : Slider(cc).GetSize();
|
||||
light = GetMousePart();
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ public:
|
|||
|
||||
public:
|
||||
struct Style : ChStyle<Style> {
|
||||
Color bgcolor;
|
||||
int barsize, arrowsize, thumbmin, overthumb, thumbwidth;
|
||||
bool through;
|
||||
Value vupper[4], vthumb[4], vlower[4];
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@ NAMESPACE_UPP
|
|||
|
||||
void ChSysInit()
|
||||
{
|
||||
CtrlImg::Reset();
|
||||
CtrlsImg::Reset();
|
||||
ChReset();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue