Broken Control.Move on a panel container - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Broken Control.Move on a panel container (/showthread.php?tid=376840) |
Control.Move on a panel container - roidy - 2024-03-30 When using Control.Move(id,-1) or Control.Move(id,1) on a panel it doesn't move to the previous or next item, instead it moves to the previous or next row. Is this broken? Is there a way to move a panel container to the previous or next item? RE: Control.Move on a panel container - Hitcher - 2024-03-30 It's always been like that. I use this trick to make it appear to move to the next row when using left and right:
So you need to add the Left or Right commands depending on the number of columns you have.
RE: Control.Move on a panel container - roidy - 2024-03-31 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"> For example a vertical panel:- Code: +---+---+ 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 RE: Control.Move on a panel container - Hitcher - 2024-03-31 Modify the panel controls I posted to use them in a button instead. RE: Control.Move on a panel container - roidy - 2024-03-31 Thanks, but that was the first thing I tried after your initial post, I just couldn't get your code to work Finally got the following to work for a 2 column panel, no need for extra buttons:- Code: <control type="button" id="200"> It's just a shame that `Control.Move()` is broken for panels Thank for the help pointing me in the right direction RE: Control.Move on a panel container - roidy - 2024-03-31 Here's a no wrap version for future reference:- Code: <onleft>SetFocus(100)</onleft> |