def PrevDescriptionPage(self): if True == event.IsWait(self.descIndex): if event.GetVisibleStartLine(self.descIndex)-5 >= 0: event.SetVisibleStartLine(self.descIndex, event.GetVisibleStartLine(self.descIndex)-5) event.Skip(self.descIndex) else: event.Skip(self.descIndex)
def PrevDescriptionPage(self): if True == event.IsWait(self.descIndex): if event.GetVisibleStartLine(self.descIndex) - event.BOX_VISIBLE_LINE_COUNT >= 0: event.SetVisibleStartLine(self.descIndex, event.GetVisibleStartLine(self.descIndex) - event.BOX_VISIBLE_LINE_COUNT) event.Skip(self.descIndex) else: event.Skip(self.descIndex)
def NextDescriptionPage(self): if TRUE == event.IsWait(self.descIndex): event.SetVisibleStartLine( self.descIndex, event.GetVisibleStartLine(self.descIndex) + 5) event.Skip(self.descIndex) else: event.Skip(self.descIndex)
def OnScroll(self): import math pos = self.scrollBar.GetPos() self.scrollPos = math.floor( float(pos) / float(float(1) / float(event.GetLineCount(self.descIndex) - 18)) + 0.001) event.SetVisibleStartLine(self.descIndex, int(self.scrollPos)) event.Skip(self.descIndex)