Wraplist - triggering and setting position
#1
Two questions regarding wraplist:

1. The below list is data provider for a button. The problem is that the plugin is called only when I try to manipulate the list (like move to next element with Control.Move). How to force loading it on window load?
Code:
<control type="wraplist" id="334">
<itemlayout></itemlayout>
<focusedlayout></focusedlayout>
<content>plugin://plugin.stiff?path=$INFO[Container.FolderPath]&amp;fetch=decades</content>
<visible>false</visible>
</control>

2. Is there a way to set wraplist to its initial item? By index or by label.
Reply
#2
Code:
<defaultcontrol>334</defaultcontrol>
<onload>SetFocus(334)</onload>
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#3
Try making it visible.
Reply
#4
(2017-06-22, 07:29)Hitcher Wrote: Try making it visible.

LMFAO, You know I missed that! Tongue
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#5
(2017-06-22, 07:29)Hitcher Wrote: Try making it visible.

The rest of my hacks on page go nuts then. I think I'll just move one item forth and back.
Reply
#6
Try instead
<visible allowhiddenfocus="true">false</visible>
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#7
Now the wraplist loads as expected, but the referring control (button with <label>$INFO[Container(334).ListItem.Label]</label>) doesn't pick up value immediately on display. Any way to force this one?
Reply
#8
It needs to load the contents of the list so there will be a delay.
Reply
#9
This is not the case Sad

I have noticed that a sure way to refesh this label is to play and stop movie (the button is in a fake dialog, so I can click with mouse a movie behind the dialog - I'm in MyVideoNav - to play a movie).

It looks like my plugin is called, but actual population of list content or button label is "lazy".
Reply

Logout Mark Read Team Forum Stats Members Help
Wraplist - triggering and setting position0