The nice thing about standards is there are so many of them. ; - ) When next-page and prev-page buttons are added—though there are two ways to implement them, circular or linear—the default selected is the straight line. On a Stream Deck page, then, on your last page, you're stuck: you can only go backwards to the previous page.
But what if there was a preference where “the last page” was defined as and could loop back to “the first page?”
Simple code change seems like it would allow it to happen. When “next page” is clicked, the code run would be
min(1,next)
that's assuming that
next
at the end of the list would returns some valid, non-zero, non-negative answer. Don't shoot me, I'm only the piano player. Regards.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
d0ugparker
The nice thing about standards is there are so many of them. ; - ) When next-page and prev-page buttons are added—though there are two ways to implement them, circular or linear—the default selected is the straight line. On a Stream Deck page, then, on your last page, you're stuck: you can only go backwards to the previous page.
But what if there was a preference where “the last page” was defined as and could loop back to “the first page?”
Simple code change seems like it would allow it to happen. When “next page” is clicked, the code run would be
that's assuming that
at the end of the list would returns some valid, non-zero, non-negative answer. Don't shoot me, I'm only the piano player. Regards.
Link to comment
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.