User Tools

Site Tools


macros:function:handles.playbacks.changepage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
macros:function:handles.playbacks.changepage [2017/10/29 16:34] – ↷ Page moved from function:handles.playbacks.changepage to macros:function:handles.playbacks.changepage icke_siegenmacros:function:handles.playbacks.changepage [2018/09/10 12:47] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +Function
 +
 ====== Handles.Playbacks.ChangePage ====== ====== Handles.Playbacks.ChangePage ======
  
Line 12: Line 14:
 ^ parameter | [[macros:type:int32]] index -- the index of the page to change to | ^ parameter | [[macros:type:int32]] index -- the index of the page to change to |
 ^ return value | ([[macros:type:void]]) |   ^ return value | ([[macros:type:void]]) |  
 +
 +See also http://forum.avolites.com/viewtopic.php?f=20&t=5846:
 +
 +>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>Handles.Beams.ChangePage(Handles.Beams.Page.Index + 1)</code>
 +>Note however that this doesn't do any error checking so will allow you to go to any page number including negative page numbers.
  
 == Example in ==  == Example in == 
-[[example:changeplaybackpages]]: +[[macros:example:changeplaybackpages]]: 
  
 <code xml> <code xml>
macros/function/handles.playbacks.changepage.1509294872.txt.gz · Last modified: 2017/10/29 16:34 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki