onload?
#1
I want set the list to the item id="5"

Why it not work?

Code:
<control type="wraplist" id="300">
            <description>Home Wraplist</description>
            <onload>Control.SetFocus(300,5)</onload>

greetz
Reply
#2
onload only works with window xml tag: http://wiki.xbmc.org/?title=Window_Structure
Reply
#3
thx man
Reply
#4
... you could try <onfocus> instead.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#5
Does it work with <onfocus> ? I'm curious because I' trying something similar (I don't have access to my laptop before a couple of days, hence my question!...).

Thks!
Reply
#6
onfocus doesnt work with lists iirc. You would need a button in that case, but onload is better practice imo.
Reply
#7
(2012-06-30, 19:51)Big_Noid Wrote: onfocus doesnt work with lists iirc. You would need a button in that case, but onload is better practice imo.

depends on what he wants to achieve. it doesn´t have the same effect.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#8
interesting... when the greatest skinner discussing Big Grin

I want:
I turn off home-menu-buttons for example "video" or "addons" . When I open home-menu the menu-botten "movie" (<item id="5">) will be focus.

thx guys
Reply
#9
PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<window id="0">
    <onload>Control.SetFocus(300,5)</onload> 
Reply
#10
Thumbs Up 
(2012-07-04, 21:35)Hitcher Wrote:
PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<window id="0">
    <onload>Control.SetFocus(300,5)</onload> 

Thank you Hitcher!
Reply
#11
Big_Noid did point you in the right direction initially.
Reply

Logout Mark Read Team Forum Stats Members Help
onload?0