Kodi Community Forum

Full Version: SendClick vs SetFocus after r24576
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am seeing a problem with a skin (MiniMeeida)'s SystemInfo screen.

The skin uses a wraplist to SendClicks to the Buttons that show systeminfo.

Code:
<item id="100">
            <description>Basic Info</description>
            <label>31018</label>
            <label2>$LOCALIZE[31003]</label2>
            <onclick>SendClick(7,95)</onclick>
          </item>

This doesn't work in A2. spiff on the forums suggested that I try. SetFoucs instead. While this set the focus on the button, it doesn't return focus back to wrap list. Can anyone suggest how I can keep this functionality working?.

It seems to be related to

http://trac.xbmc.org/changeset/24576
after setting the focus to the button, i set the focus back to the wraplist. this was

in the button.

<onfocus>SetFocus(9000)</onfocus>

Terrible hack.. anyone have a better idea?
The new code automatically changes category based on which of the main buttons has focus.

Why not just use that?
That would be even better..
But uhh could you give an example or a link how to use the new code.
See PM3.HD or Confluence Smile

IIRC all you need is the buttons with the appropriate ID there and XBMC handles the rest.

Cheers,
Jonathan
Ooh, ok thanks will play with it. Big Grin
Waffa Wrote:Ooh, ok thanks will play with it. Big Grin

I think in the case of MiniMeedia, the buttons are invisbile. There is a wraplist that used to "SendClick". Since the that has changed its a problem.

It would be solved if minimeedia could place a bunch of buttons in a wraplist.