Page 1 of 1

Handles.Beams.PreviousPage()

Posted: 15 Aug 2018, 12:50
by sideshowbond
I was just trying

Code: Select all

Handles.Beams.PreviousPage()

and it would just straight jump to what seems to be an inaccessible page 0.

Code: Select all

NextPage
jumps straight to page 1 regardless of its previous position. Is that expected behaviour or am I doing something wrong here?

Re: Handles.Beams.PreviousPage()

Posted: 15 Aug 2018, 21:29
by icke_siegen
Does previousPage() really jump STRAIGHT to page 0? From my experience it decrements, one by one, until it reaches page 0.

Apart from that you are right - it doesn't look right

Re: Handles.Beams.PreviousPage()

Posted: 22 Aug 2018, 14:02
by Gregory
The next and previous page functions unfortunately do not work properly for workspace windows as they attempt to loop around the maximum number of pages. For the playback faders this is 60, so when you are on that page pressing next page will take you to page 1 and the opposite is true with previous page. However workspace windows do not have a predefined maximum page number so this is set to zero which means that next page always loops around to page 1 and when on page 1 previous page will take you to the maximum page which is zero. One work around is to set the page directly e.g.:

Code: Select all

Handles.Beams.ChangePage(Handles.Beams.Page.Index + 1)

Note however that this doesn't do any error checking so will allow you to go to any page number including negative page numbers.