def DisableDownArrow(self): if not self.GetStyleL('style') & self.Style.SBS_VERT: raise RuntimeError("invalid method for horizontal scrollbar") return bool(user32.EnableScrollBar(self.Hwnd, SB_CTL, ESB_DISABLE_UP))
def EnableLeftArrow(Window): user32.EnableScrollBar(Window.Hwnd, SB_HORZ, ESB_ENABLE_BOTH) if not user32.EnableScrollBar(Window.Hwnd, SB_HORZ, ESB_DISABLE_RIGHT): raise RuntimeError("could not enable left arrow")
def DisableLeftArrow(self): if self.GetStyleL('style') & self.Style.SBS_VERT: raise RuntimeError("invalid method for vertical scrollbar") return bool(user32.EnableScrollBar(self.Hwnd, SB_CTL, ESB_DISABLE_RIGHT))
def Disable(self): return bool(user32.EnableScrollBar(self.Hwnd, SB_CTL, ESB_DISABLE_BOTH)) def DisableRightArrow(self):
def DisableVertArrows(Window): if not user32.EnableScrollBar(Window.Hwnd, SB_HORZ, ESB_DIABLE_BOTH): raise RuntimeError("could not disable arrows")
def EnableVertArrows(Window): if not user32.EnableScrollBar(Window.Hwnd, SB_VERT, ESB_ENABLE_BOTH): raise RuntimeError("could not enable arrows")
def EnableDownArrow(Window): user32.EnableScrollBar(Window.Hwnd, SB_VERT, ESB_ENABLE_BOTH) if not user32.EnableScrollBar(Window.Hwnd, SB_HORZ, ESB_DISABLE_UP): raise RuntimeError("could not enable right arrow")