2016-02-07, 00:21
(2016-02-06, 23:26)sveni_lee Wrote: one more question, would it be possible to run the script every time if one of the static list items gets focus...
so if I go from one item to next the script shoud run again... :-)
Possible? Yes. Easy? Well...
The individual items in the widget don't have an <onfocus /> tag. The container that they're in does, but that only gets called when the whole widget gets focused, not when the focus changes between the items in the widget.
The only workaround I know of (which isn't to say there aren't others known by those more skilled than I, or necessarily that this workaround will in fact work for you) is to put a button control into the <focusedlayout /> of the panel container, and use its <onfocus /> to run the script.
That means heading back to the Includes_Widgets.xml file, and adding a button control to every <focusedlayout /> in there (there's a few as they have to cover all the different widget layouts/artwork styles - and it's probably a good place to use an include so you're only editing the button control in one place) with the conditional <onfocus />. Then cross your fingers that it works!
I wish you luck