Sponsored Links:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
buttons in dialog window not working. Works when dialog is changed to window
#1
I have a custom dialog that works with buttons which are non responsive. When the dialog window is chnaged to window 
Code:
<window id="1125" type="dialog">

<window id="1125" type="winow">
the buttons work. Ver of Kodi is 16.1. Can someone tell me what I'm missing?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<window id="1125" type="dialog">
<defaultcontrol always="true">9099</defaultcontrol>
<allowoverlay>no</allowoverlay>
   <include>defaultskinsettingsValues</include>
   <controls>

<control type="image">
<left>0</left>
<top>820</top>
<width>1920</width>
<height>270</height>
<texture>special://skin/extras/thumb/infoBar.png</texture>
</control>

<control type="list" id="9099">
<!--<top>840</top>-->

<animation effect="zoom" end="105,105" time="200" condition="Control.hasFocus(9010)">Conditional</animation>
<include>Animation_Window_Down</include>

<include>settingsDimensions2</include> <!---background overlay info here-->
<include>SettingsRowLayouts2</include>
<onup>608</onup>
<onleft>9000</onleft>
<ondown>9099</ondown>
<content>
<item id="30">
<label>Device Settings</label>
<icon>ic_settings_settings.png</icon>
<thumb>ic_settings_settings.png</thumb>
<onclick>StartAndroidActivity(com.android.tv.settings)</onclick>
<visible>true</visible>

</item>

<item id="38">
<label>Wifi Settings</label>
<icon>ic_settings_settings.png</icon>
<thumb>special://skin/extras/thumb/android_wifi.png</thumb>
<onclick>StartAndroidActivity(,android.settings.WIFI_SETTINGS)</onclick>

<visible>true</visible>

</item>


<item id="2">
<label>System</label>
<icon>icon2.png</icon>
<thumb>special://skin/extras/thumb/media_settings.png</thumb>
<onclick>ActivateWindow(Settings)</onclick>

</item>
<item id="31">
<label>File Manager</label>
<icon>icon2.png</icon>
<thumb>special://skin/extras/thumb/file_manager.png</thumb>
<onclick>ActivateWindow(Filemanager)</onclick>

</item>
<item id="37">
<label>Add-Ons</label>
<icon>icon2.png</icon>
<thumb>special://skin/extras/thumb/addon_browser.png</thumb>
<onclick>ActivateWindow(AddonBrowser)</onclick>

</item>

<item id="32">
<label>Tools</label>
<icon>icon2.png</icon>
<thumb>special://skin/extras/thumb/tools.png</thumb>
<onclick>ActivateWindow(Programs,&quot;plugin://plugin.program.addoninstaller&quot;,10000)</onclick>

</item>
<item id="33">
<label>Update Interface</label>
<icon>icon2.png</icon>
<thumb>special://skin/extras/thumb/update.png</thumb>
<onclick>ActivateWindow(Programs,&quot;plugin://plugin.program.Cirkud/?mode=builds&quot;,return)</onclick>

</item>

<item id="36">
<label>Weather Settings</label>
<icon>icon2</icon>
<thumb>special://skin/extras/thumb/weather.png</thumb>
<onclick>ActivateWindow(Weather)</onclick>
</item>

<item id="35">
<label>Shutdown</label>
<icon>shutdownicon.png</icon>
<thumb>special://skin/extras/thumb/power.png</thumb>
<onclick>ActivateWindow(shutdownmenu)</onclick>
</item>
</content>
</control>

</controls>
</window>
  Reply
Sponsored Links:
#2
I forgot to add <onclick>Dialog.Close(all)</onclick>
ALl is good now
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)