Problem with "<onfocus>ActivateWindow()" and "alowoverlay"
#1
Hello

Got Problems while try to code the settingsarea a bit different.

to understand some things correct:

"<allowoverlay>true</allowoverlay>" alows me to have a Window opened on top of the actual Window, or does im understand this wrong?

shuld "<onfocus>ActivateWindow(foo)</onfocus>" work?


what i try to do is something like this:

Image

thuth i could work with a overlayd "SettingsCategory.xml" in the Settings.xml and work with "<onfocus>ActivateWindow(foo)</onfocus>" to show the related content while on focus. which didnt work.

so a item in the Settings.xml would look like this:

PHP Code:
<item id="1">
                     <
label>480</label>
                     <
label2>31400</label2>
                     <
onclick>ActivateWindow(AppearanceSettings)</onclick>
                     <
onfocus>ActivateWindow(AppearanceSettings)</onfocus>
                     <
onright>ActivateWindow(AppearanceSettings)</onright>
                     <
icon>-</icon>
           </
item

cause this didnt work i thuth maby "ActivateWindow" is not allowd together with "onfocus"
(so i may have to work with propeties and visibles, but no luck so far.)

regards.
Reply
#2
no, allowoverlay means something different. (from Wiki: )
allowoverlay
Setting this tag to true, or yes, indicates that the music or video overlay may be shown when this window is active. If this tag is not present, the state of the previous (or parent) window is used.

<onfocus> for list items does not work either.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
thanks for your reply

So it seems the only way to achieve this is with a lot of Fake Lists (Buttons) to have the illusion of navigate thru one "settingarea".
will probably give it a try with "properties" to set the visible while <onfocus> for this fakelists.

<onright>ActivateWindow() shuld work as much as i remember.

would have be cool if i just could have open other Windows on top of "Settingsxml" to set the visible according to a <onfocus> position.

regards.
Reply
#4
I did something similar with Conq if you want to check it's code.

Image

Image

Image
Reply

Logout Mark Read Team Forum Stats Members Help
Problem with "<onfocus>ActivateWindow()" and "alowoverlay"0