SendClick vs SetFocus after r24576
#1
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
Reply
#2
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?
Reply
#3
The new code automatically changes category based on which of the main buttons has focus.

Why not just use that?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
That would be even better..
But uhh could you give an example or a link how to use the new code.
Reply
#5
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
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
Ooh, ok thanks will play with it. Big Grin
Reply
#7
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.
Reply

Logout Mark Read Team Forum Stats Members Help
SendClick vs SetFocus after r245760