SendClick vs SetFocus after r24576

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
vajonam Offline
Donor
Posts: 348
Joined: Sep 2008
Reputation: 0
Location: Toronto, Canada
Post: #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
(This post was last modified: 2009-11-16 16:50 by vajonam.)
find quote
vajonam Offline
Donor
Posts: 348
Joined: Sep 2008
Reputation: 0
Location: Toronto, Canada
Post: #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?
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 25,694
Joined: Oct 2003
Reputation: 169
Post: #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: badge.gif]
find quote
Waffa Offline
Posting Freak
Posts: 1,163
Joined: May 2008
Reputation: 7
Location: Netherlands
Post: #4
That would be even better..
But uhh could you give an example or a link how to use the new code.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 25,694
Joined: Oct 2003
Reputation: 169
Post: #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: badge.gif]
find quote
Waffa Offline
Posting Freak
Posts: 1,163
Joined: May 2008
Reputation: 7
Location: Netherlands
Post: #6
Ooh, ok thanks will play with it. Big Grin
find quote
vajonam Offline
Donor
Posts: 348
Joined: Sep 2008
Reputation: 0
Location: Toronto, Canada
Post: #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.
find quote