Kodi Community Forum

Full Version: Grouplist and dynamic content (focus last group item)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Something i am having a hard time with;

An example would be Estuary with a vertical menu. Widgets recently added ect. for a vertical menu work great. The first item in the group list for the widget is focused.
In the case of a horizontal menu it would be ideal to have the last item in the group list focused on window load.

So that leads me to my question. Is it possible for a group list to have the last item focused on window load? (also the number of items can vary depending upon user choice)

I have have tried to make this work but no joy.
In theroy I would think you could hack it to work but technically no at least not that I have seen
Tried
Code:
<onload>Control(id).Move(-1)</onload>
?
Thanks

I tried but Control.Move(id,-1) only works for containers and not grouplists


As for a hackish workaround, i have this and it is to hackish for my liking. Also need to account for every menu item and every widget with a unique id.

Code:
<onload>Control.SetFocus(452)</onload>

Code:
<control type="button" id="452">
    <include>Hidden Object</include>
    <onfocus>SetFocus(51)</onfocus>
    <onfocus>SetFocus(52)</onfocus>
    <onfocus>SetFocus(53)</onfocus>
    <onfocus>SetFocus(54)</onfocus>
    <onfocus>SetFocus(9000)</onfocus>
</control>

I really cant see any other way i can do this apart from putting in a ticket. Really need something like <focusposition>3</focusposition> for a grouplist.