Solved <onback> issue in button menu dialog
#1
Hi guys,

I am have issues using <onback> from within a list control in the button menu dialog. I have a button control with id 999 that clears a home property and then closes the dialog. This works fine for <ondirection> tags but when I try the same thing with an <onback>999</onback> it seems to ignore the tag and do a standard onback action of closing the dialog (but not clearing the home property as it should).

 
xml:
<control type="button" id="999"><!-- Dummy hidden button to close dialog -->
        <left>-15</left>
        <top>-15</top>
        <width>1</width>
        <height>1</height>
        <onfocus>ClearProperty(ShutdownKodi,home)</onfocus>
        <onfocus>Dialog.Close(shutdownmenu)</onfocus>
</control>

<control type="list" id="9000">
        <left>675</left>
        <top>306</top>
        <width>540</width>
        <height>675</height>
        <onleft>999</onleft>
        <onright>999</onright>
        <onup>999</onup>
        <ondown>999</ondown>
        <onback>999</onback>

...


so onleft, onright, onup and ondown tags are working as expected, onback tag seems to be ignored. Running Kodi 18.8 on Windows 10, although pretty certain that is not the issue.

Could someone please offer some insight on what I am doing wrong?

Wyrm
Reply
#2
Have you tried
Code:
<onback>SetFocus(999)<onback>
Reply
#3
(2020-10-08, 17:24)roidy Wrote: Have you tried
Code:
<onback>SetFocus(999)<onback>

Yep, made no difference. But thanks for the suggestion.

Wyrm
Reply
#4
Ok, after widening my search terms quite a bit I found the following thread. Turns out <onback> is hardcoded to set actions on the home screen and so any dialogs that open on this screen also would use these override actions as well. Have solved my issue by using a conditional <onunload>.

Worth remembering for next time I guess.
Wyrm
Reply
#5
Good to know... by the way, what the <ondirection> tag does?
First time i see it and there is no reference in the wiki.

Cheers
Nessus
Reply
#6
(2020-10-11, 08:34)nessus Wrote: Good to know... by the way, what the <ondirection> tag does?
First time i see it and there is no reference in the wiki.

Cheers
Nessus

Shorthand for onleft, onright, onup,ondown.

Wyrm
Reply
#7
(2020-10-11, 09:05)wyrm Wrote: Shorthand for onleft, onright, onup,ondown.
Wink
Reply

Logout Mark Read Team Forum Stats Members Help
<onback> issue in button menu dialog0