Quote:I use this trick to make it appear to move to the next row when using left and right:
Thanks but I'm not trying to move to the next row using the panels left/right. I understand that your solution is to overcome that a panel wraps around on the same row instead of resetting to the left and moving down a row. That's not what I'm trying to do.
What I'm trying to do is move a panel from one item to the next using a button:-
Code:
<control type="panel" id="100">
..... 2 items wide, x items height
</control>
<control type="button" id="200">
<onleft>Control.Move(100,-1)</onleft>
<onright>Control.Move(100,1)</onright>
</control>
For example a vertical panel:-
Code:
+---+---+
| 1 | 2 |
+---+---+
| 3 | 4 |
+---+---+
| 5 | 6 |
+---+---+
Every time Control.Move(100,1) is called then the panel should change focus in order 1,2,3,4,5,6,1 and the same in reverse for Control.Move(100,-1)
However Control.Move(100,1) actually moves 1,3,5,1,3,5,1,3,5