Control.Move absolute? - 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: Control.Move absolute? (/showthread.php?tid=355933) |
Control.Move absolute? - roidy - 2020-07-19 Is there a way to set an absolute position with Control.Move instead of an offset? I know Control.SetFocus will take an absolute position but I don't want the control I'm moving to gain focus. RE: Control.Move absolute? - Hitcher - 2020-07-19 Can't you follow it up with another setfocus back to the original control? RE: Control.Move absolute? - roidy - 2020-07-19 (2020-07-19, 17:24)Hitcher Wrote: Can't you follow it up with another setfocus back to the original control? No, because focusing the original control runs a script which I don't want to happen twice, once when the original control is first focused and then again when focus gets set back to it. I ended up doing it in python by first reading the control I want to move's current position then moving negative that amount to get to the start of the control and then moving by the absolute position I need to move it to.
|