ScrollBar::ScrollBar() { minthumb = 16; pagepos = pagesize = totalsize = 0; linesize = 1; autohide = false; autodisable = true; jump = false; track = true; horz = false; thumbsize = 8; thumbpos = 0; push = light = -1; Add(prev); Add(prev2); Add(next); Add(next2); NoWantFocus(); prev.ScrollStyle().NoWantFocus().Transparent(); prev.WhenPush = prev.WhenRepeat = callback(this, &ScrollBar::PrevLine); prev.WhenPush << Proxy(WhenLeftClick); prev2.ScrollStyle().NoWantFocus().Transparent(); prev2.WhenRepeat = prev.WhenRepeat; prev2.WhenPush = prev.WhenPush; next.ScrollStyle().NoWantFocus().Transparent(); next.WhenPush = next.WhenRepeat = callback(this, &ScrollBar::NextLine); next.WhenPush << Proxy(WhenLeftClick); next2.ScrollStyle().NoWantFocus().Transparent(); next2.WhenRepeat = next.WhenRepeat; next2.WhenPush = next.WhenPush; style = NULL; SetStyle(StyleDefault()); BackPaint(); }
ProgressIndicator::ProgressIndicator() { style = &StyleDefault(); Transparent(); NoWantFocus(); total = actual = 0; percent = false; color = Null; pxp = 0; }
SeparatorCtrl::SeparatorCtrl() { NoWantFocus(); Transparent(); Disable(); lmargin = rmargin = 2; size = 7; SetStyle(StyleDefault()); }
MultiButton::MultiButton() { Transparent(); SetStyle(StyleDefault()); display = &StdDisplay(); convert = &NoConvert(); valuecy = Null; push = false; SetFrame(sNullFrame()); }
void HeaderCtrl::Reset() { col.Clear(); track = true; mode = PROPORTIONAL; oszcx = -1; invisible = false; height = 0; style = &StyleDefault(); Refresh(); moving = false; }
ToolBar::ToolBar() { pane.Margin(2, 3); lsepm = rsepm = 0; ssize = 8; lock = 0; ii = 0; SetStyle(StyleDefault()); buttonminsize = Null; maxiconsize = Null; kind = ToolButton::NOLABEL; arealook = -1; nodarkadjust = false; }
MenuBar::MenuBar() { LLOG("MenuBar " << Name()); submenu = parentmenu = NULL; submenuitem = NULL; doeffect = true; font = StdFont(); leftgap = Null; lock = 0; SetStyle(StyleDefault()); arealook = -1; maxiconsize = Null; nodarkadjust = false; }
TopWindow::TopWindow() { GuiLock __; GuiPlatformConstruct(); TransparentBackPaint(); background = PaintRect(Single<DialogBackground>(), Null); SetStyle(StyleDefault()); center = 1; minsize = Size(80, 20); maximizebox = minimizebox = sizeable = tool = noclosebox = false; state = OVERLAPPED; WhenClose = THISBACK(Close); overlapped.Clear(); dokeys = true; fullscreen = frameless = urgent = false; close_rejects = false; }
PopUpDockWindow::PopUpDockWindow() { SetStyle(StyleDefault()); AnimateDelay(0); }
int ToolBar::GetStdHeight() { Size sz = StyleDefault().maxiconsize; return sz.cy > 10000 ? 22 + 3 : sz.cy + 6 + 3; }
void ToolButton::Reset() { ResetKeepStyle(); style = &StyleDefault(); }