Set.Focus in Grouplist Controls? (onload)
#1
Looking for a way to set the Focus on the 2nd List in a Groulistp Control (<onload>Controlgroup.SetFocus(9050,1)</onload> or something similar)

Think of it like if in estuary always the first widget should be focused, as soon u enter "Home".

is there a solution?

Did already try
xml:
<onload>SetFocus(9050,1)</onload>

<onload>Control.SetFocus(9050,1)</onload>

<onload>ControlGroup.SetFocus(9050,1)</onload>
"9050" is the ID of the Grouplist which holds the Lists/fixedlists (Widgets).
Reply
#2
Tried just setting focus to the list you want focused?
Reply
#3
jer

xml:
<onload>SetFocus(9020,0)</onload>
<onload>Control.SetFocus(9020,1)</onload>

if i try it this way, neither the grouplist or the list inside the grouplist gets focus, if i reload the Skin.

---

EDIT:
Did also Try to set the Focus first on the grouplist and after on the List (fixedlist)
xml:
<onload>Control.SetFocus(9050)</onload>
    <onload>SetFocus(9020,0)</onload

now the Grouplist is Focused but on the same list as before the Skinreload
Reply
#4
have you defined a defaultcontrol in your grouplist?
https://kodi.wiki/view/Group_List_Control
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
Not thil u ask.

Did give it a qick try, but seems to have no effect as long i didnt do something wrong.

xml:
<onload>Control.SetFocus(9050)</onload>
<onload>Control.SetFocus(9050,1)</onload>

Did try both with and without specifying an Id

did set the defaultcontrol in the grouplist (id="9050") to 9020 which doesnt seem to have any effect.


----
EDIT:

Whait! as soon as i go back from a different window instead of doing a reload.skin it seems to work, Thanks.
Reply
#6
I actually meant removing the grouplist id altogether.
Code:
<onload>SetFocus(1)</onload>
Reply

Logout Mark Read Team Forum Stats Members Help
Set.Focus in Grouplist Controls? (onload)0