<onfocus>SendClick(windowid,id)<onfocus> problem
#1
I've got a list of content with the usual <onclick></onclick> commands but I'd like them to automatically be clicked when focused. So I made dummy buttons for the <onup> and <ondown> commands in the list and from there tried to send the click -

PHP Code:
<control type="button" id="50002">
    <include>
HiddenButton</include>
    <
onfocus>Control.Move(501,-1)</onfocus>
    <
onfocus>SendClick(501)</onfocus>
</
control

The move part works fine but the click doesn't.

Any ideas why?

Thanks.
Reply
#2
Reason is that "SendClick" doesn't send a click to the control and have the control do things, rather it sends a click message to the window - i.e. it's for those things whose events are processed by the window. I'm not sure whether "Select" will work there?

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
#3
I also tried Control.Message(id,message,[windowid]) hoping that would work but it's the same.

So there's no way currently to use an onfocus control instead of an onclick one?
Reply

Logout Mark Read Team Forum Stats Members Help
<onfocus>SendClick(windowid,id)<onfocus> problem0