Spincontrol does not reset its position when the window is reopened
#1
Is it possible to reset the position of a spincontrol?

Let me explain better, when in a spincontrol you are in its right position (page up) and close the dialog window, then reopen it always returning to the spincontrol, the focus position is not on the left (page down) as it should, but instead remains on the right (page up).

I believe this problem is related to the fact that Kodi remembers the last position of each element in the windows.


Is it possible to do some trick to remove this state?

or any trick to bring the spincontrol back to its initial position (page down)?

Have you ever had this problem?


Thanks so much, any help will be appreciated.
If i helped you, you can thank me with a thumbs up šŸ‘ below, thanks šŸ™.
Kodi 20.x stableĀ release | Skin Confluence (by Jezz_X)
I like editing skins ā¤
Reply
#2
Has anyone encountered this problem?

I wonder if maybe it could just depend on me...
If i helped you, you can thank me with a thumbs up šŸ‘ below, thanks šŸ™.
Kodi 20.x stableĀ release | Skin Confluence (by Jezz_X)
I like editing skins ā¤
Reply
#3
You said you had already solved that issueā€¦

https://forum.kodi.tv/showthread.php?tid...pid3117939
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
#4
(2024-02-19, 02:26)manfeed Wrote: You said you had already solved that issueā€¦

https://forum.kodi.tv/showthread.php?tid...pid3117939
It's not about resetting the textbox, it's just about resetting the focus on the spincontrol.

This threads does not concern the fact that the textbox is not reset when the window is reopened, applying your method resolves this, but it does not resolve the fact that the spincontrol resets, in fact it remains selected on the last left position.
(in a simple way it doesn't concern spincontrol + textbox, but only spincontrol)
(in the thread I hadn't noticed the fact that the spincontrol focus always remained where I left it)

I tried this method, inserting a resetscroll into the spincontrol too, but this doesn't work, as the spincontrol doesn't support the <label> tag.


I wonder if there is a method to make the spincontrol focus reset every time when the window is closed.
If i helped you, you can thank me with a thumbs up šŸ‘ below, thanks šŸ™.
Kodi 20.x stableĀ release | Skin Confluence (by Jezz_X)
I like editing skins ā¤
Reply
#5
Have you tried with something like this?ā€¦

<onload>SetFocus(xxx)</onload>
<onload>Action(left)</onload> (or right, up, down, depending on your needs)
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
#6
(2024-02-21, 02:21)manfeed Wrote: Have you tried with something like this?ā€¦

<onload>SetFocus(xxx)</onload>
<onload>Action(left)</onload> (or right, up, down, depending on your needs)
The problem is not where you leave the focus in the spincontrol, but that it stays in its last position, so "Action(left),Action(down)" is not the solution.
(furthermore, I don't have to focus the first time on spincontrol)

I'm realizing there's little I can do.


Unfortunately I believe that it is a limitation of Kodi that it cannot reset the state of a textbox, spincontrol, or a window in general.
(luckily I solved it with the textbox)

The fact that generally in the forum they don't talk about it, maybe I think it's just me that annoys me...

(sorry for the bad English)



Thank you for your support.
If i helped you, you can thank me with a thumbs up šŸ‘ below, thanks šŸ™.
Kodi 20.x stableĀ release | Skin Confluence (by Jezz_X)
I like editing skins ā¤
Reply

Logout Mark Read Team Forum Stats Members Help
Spincontrol does not reset its position when the window is reopened0