示例#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")