Solved How can I define default focus control in grouplist control?
#1
Hi,

I have several button controls inside a grouplist control.
Each time I open the dialog, the default focused control is the same control (which I don't want it to be).
I want to change it, so the default focused control will be another one.
How can I do that?

I tried to use the defaultcontrol but it didn't help here:
Code:
<defaultcontrol>12</defaultcontrol>

It relates to the DialogAddonInfo.xml
Code:
<control type="grouplist" id="9000">
* When addon is installed: Default focus id is "9" (configuration)
* When addon is not installed: Default focus id is "6" (install)

Maybe this default focused control is set by Kodi?

Thanks
Reply
#2
If <defaultcontrol> isn't working then try:-

xml:
<onload>SetFocus(12)</onload>
Reply
#3
(2021-10-21, 17:33)roidy Wrote: If <defaultcontrol> isn't working then try:-

xml:
<onload>SetFocus(12)</onload>

I tried this also, didn't work.

It seems like kodi forces this id to be focued at this specific grouplist.
Reply
#4
I think also maybe because not all the controls are inside the screen (There is arrow on left/right) this option isn't working.
Reply
#5
(2021-10-21, 15:48)burekas Wrote: * When addon is installed: Default focus id is "9" (configuration)
* When addon is not installed: Default focus id is "6"

Maybe this default focused control is set by Kodi?

yup, that is correct. kodi handles the default focus in the addon info dialog.
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
#6
(2021-10-22, 00:17)ronie Wrote:
(2021-10-21, 15:48)burekas Wrote: * When addon is installed: Default focus id is "9" (configuration)
* When addon is not installed: Default focus id is "6"

Maybe this default focused control is set by Kodi?

yup, that is correct. kodi handles the default focus in the addon info dialog.
Oh, Ok Smile
Now that explains everything.
Thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
How can I define default focus control in grouplist control?0