Пример #1
0
	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))
Пример #2
0
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")
Пример #3
0
	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))
Пример #4
0
	def Disable(self):	return bool(user32.EnableScrollBar(self.Hwnd, SB_CTL, ESB_DISABLE_BOTH))
		
	
	def DisableRightArrow(self):
Пример #5
0
def DisableVertArrows(Window):
	if not user32.EnableScrollBar(Window.Hwnd, 
									SB_HORZ, ESB_DIABLE_BOTH):
		raise RuntimeError("could not disable arrows")
Пример #6
0
def EnableVertArrows(Window):
	if not user32.EnableScrollBar(Window.Hwnd, 
									SB_VERT, ESB_ENABLE_BOTH):
		raise RuntimeError("could not enable arrows")
Пример #7
0
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")