Diff of /skin.aeonmq5/720p/CustomSub6021.xml [0d2605] .. [d3bdef] Maximize Restore

  Switch to side-by-side view

--- a/skin.aeonmq5/720p/CustomSub6021.xml
+++ b/skin.aeonmq5/720p/CustomSub6021.xml
@@ -2,9 +2,7 @@
 
 	<window id="6021" type="dialog"><!-- Meu Menu 1 -->
 	<defaultcontrol>-</defaultcontrol>
-	<onload condition="!StringCompare(Container(9000).numitems,0)">SetFocus(9000)</onload>
-	<onload condition="StringCompare(Container(9000).numitems,0)">SetFocus(9101)</onload>
-	<onunload>Skin.Reset(submode)</onunload>
+	<include>SubMenuCommon</include>
 	<controls>
 	<control type="group">
 	<include condition="Window.IsVisible(6000)">MenuCustom</include>
@@ -22,8 +20,8 @@
 	<property name="name">menu2101</property>
 	<property name="id">$INFO[skin.string(menu2101.master)]</property>
 	<onclick condition="Window.IsVisible(6000)">SetFocus(5000)</onclick>
-	<onclick condition="Window.IsVisible(Home)">Close</onclick>
-	<onclick condition="Window.IsVisible(Home)">$VAR[value_menu2101.action]</onclick>
+	<onclick condition="Window.IsVisible(Home)">Dialog.Close(6021)</onclick>
+	<onclick condition="Window.IsVisible(Home)">Skin.SetString(submenu_action,$VAR[value_menu2101.action])</onclick>
 	<visible>![IsEmpty(skin.string(menu2101.master)) | SubString(skin.string(menu2101.visible),off)] | Window.IsVisible(6000)</visible>
 	</item>
 	<item>
@@ -32,8 +30,8 @@
 	<property name="name">menu2102</property>
 	<property name="id">$INFO[skin.string(menu2102.master)]</property>
 	<onclick condition="Window.IsVisible(6000)">SetFocus(5000)</onclick>
-	<onclick condition="Window.IsVisible(Home)">Close</onclick>
-	<onclick condition="Window.IsVisible(Home)">$VAR[value_menu2102.action]</onclick>
+	<onclick condition="Window.IsVisible(Home)">Dialog.Close(6021)</onclick>
+	<onclick condition="Window.IsVisible(Home)">Skin.SetString(submenu_action,$VAR[value_menu2102.action])</onclick>
 	<visible>![IsEmpty(skin.string(menu2102.master)) | SubString(skin.string(menu2102.visible),off)] | Window.IsVisible(6000)</visible>
 	</item>
 	<item>
@@ -42,8 +40,8 @@
 	<property name="name">menu2103</property>
 	<property name="id">$INFO[skin.string(menu2103.master)]</property>
 	<onclick condition="Window.IsVisible(6000)">SetFocus(5000)</onclick>
-	<onclick condition="Window.IsVisible(Home)">Close</onclick>
-	<onclick condition="Window.IsVisible(Home)">$VAR[value_menu2103.action]</onclick>
+	<onclick condition="Window.IsVisible(Home)">Dialog.Close(6021)</onclick>
+	<onclick condition="Window.IsVisible(Home)">Skin.SetString(submenu_action,$VAR[value_menu2103.action])</onclick>
 	<visible>![IsEmpty(skin.string(menu2103.master)) | SubString(skin.string(menu2103.visible),off)] | Window.IsVisible(6000)</visible>
 	</item>
 	<item>
@@ -52,8 +50,8 @@
 	<property name="name">menu2104</property>
 	<property name="id">$INFO[skin.string(menu2104.master)]</property>
 	<onclick condition="Window.IsVisible(6000)">SetFocus(5000)</onclick>
-	<onclick condition="Window.IsVisible(Home)">Close</onclick>
-	<onclick condition="Window.IsVisible(Home)">$VAR[value_menu2104.action]</onclick>
+	<onclick condition="Window.IsVisible(Home)">Dialog.Close(6021)</onclick>
+	<onclick condition="Window.IsVisible(Home)">Skin.SetString(submenu_action,$VAR[value_menu2104.action])</onclick>
 	<visible>![IsEmpty(skin.string(menu2104.master)) | SubString(skin.string(menu2104.visible),off)] | Window.IsVisible(6000)</visible>
 	</item>
 	<item>
@@ -62,8 +60,8 @@
 	<property name="name">menu2105</property>
 	<property name="id">$INFO[skin.string(menu2105.master)]</property>
 	<onclick condition="Window.IsVisible(6000)">SetFocus(5000)</onclick>
-	<onclick condition="Window.IsVisible(Home)">Close</onclick>
-	<onclick condition="Window.IsVisible(Home)">$VAR[value_menu2105.action]</onclick>
+	<onclick condition="Window.IsVisible(Home)">Dialog.Close(6021)</onclick>
+	<onclick condition="Window.IsVisible(Home)">Skin.SetString(submenu_action,$VAR[value_menu2105.action])</onclick>
 	<visible>![IsEmpty(skin.string(menu2105.master)) | SubString(skin.string(menu2105.visible),off)] | Window.IsVisible(6000)</visible>
 	</item>
 	<item>
@@ -72,8 +70,8 @@
 	<property name="name">menu2106</property>
 	<property name="id">$INFO[skin.string(menu2106.master)]</property>
 	<onclick condition="Window.IsVisible(6000)">SetFocus(5000)</onclick>
-	<onclick condition="Window.IsVisible(Home)">Close</onclick>
-	<onclick condition="Window.IsVisible(Home)">$VAR[value_menu2106.action]</onclick>
+	<onclick condition="Window.IsVisible(Home)">Dialog.Close(6021)</onclick>
+	<onclick condition="Window.IsVisible(Home)">Skin.SetString(submenu_action,$VAR[value_menu2106.action])</onclick>
 	<visible>![IsEmpty(skin.string(menu2106.master)) | SubString(skin.string(menu2106.visible),off)] | Window.IsVisible(6000)</visible>
 	</item>
 	<item>
@@ -82,8 +80,8 @@
 	<property name="name">menu2107</property>
 	<property name="id">$INFO[skin.string(menu2107.master)]</property>
 	<onclick condition="Window.IsVisible(6000)">SetFocus(5000)</onclick>
-	<onclick condition="Window.IsVisible(Home)">Close</onclick>
-	<onclick condition="Window.IsVisible(Home)">$VAR[value_menu2107.action]</onclick>
+	<onclick condition="Window.IsVisible(Home)">Dialog.Close(6021)</onclick>
+	<onclick condition="Window.IsVisible(Home)">Skin.SetString(submenu_action,$VAR[value_menu2107.action])</onclick>
 	<visible>![IsEmpty(skin.string(menu2107.master)) | SubString(skin.string(menu2107.visible),off)] | Window.IsVisible(6000)</visible>
 	</item>
 	<item>
@@ -92,8 +90,8 @@
 	<property name="name">menu2108</property>
 	<property name="id">$INFO[skin.string(menu2108.master)]</property>
 	<onclick condition="Window.IsVisible(6000)">SetFocus(5000)</onclick>
-	<onclick condition="Window.IsVisible(Home)">Close</onclick>
-	<onclick condition="Window.IsVisible(Home)">$VAR[value_menu2108.action]</onclick>
+	<onclick condition="Window.IsVisible(Home)">Dialog.Close(6021)</onclick>
+	<onclick condition="Window.IsVisible(Home)">Skin.SetString(submenu_action,$VAR[value_menu2108.action])</onclick>
 	<visible>![IsEmpty(skin.string(menu2108.master)) | SubString(skin.string(menu2108.visible),off)] | Window.IsVisible(6000)</visible>
 	</item>
 	<item>
@@ -102,8 +100,8 @@
 	<property name="name">menu2109</property>
 	<property name="id">$INFO[skin.string(menu2109.master)]</property>
 	<onclick condition="Window.IsVisible(6000)">SetFocus(5000)</onclick>
-	<onclick condition="Window.IsVisible(Home)">Close</onclick>
-	<onclick condition="Window.IsVisible(Home)">$VAR[value_menu2109.action]</onclick>
+	<onclick condition="Window.IsVisible(Home)">Dialog.Close(6021)</onclick>
+	<onclick condition="Window.IsVisible(Home)">Skin.SetString(submenu_action,$VAR[value_menu2109.action])</onclick>
 	<visible>![IsEmpty(skin.string(menu2109.master)) | SubString(skin.string(menu2109.visible),off)] | Window.IsVisible(6000)</visible>
 	</item>
 	<item>
@@ -112,8 +110,8 @@
 	<property name="name">menu2110</property>
 	<property name="id">$INFO[skin.string(menu2110.master)]</property>
 	<onclick condition="Window.IsVisible(6000)">SetFocus(5000)</onclick>
-	<onclick condition="Window.IsVisible(Home)">Close</onclick>
-	<onclick condition="Window.IsVisible(Home)">$VAR[value_menu2110.action]</onclick>
+	<onclick condition="Window.IsVisible(Home)">Dialog.Close(6021)</onclick>
+	<onclick condition="Window.IsVisible(Home)">Skin.SetString(submenu_action,$VAR[value_menu2110.action])</onclick>
 	<visible>![IsEmpty(skin.string(menu2110.master)) | SubString(skin.string(menu2110.visible),off)] | Window.IsVisible(6000)</visible>
 	</item>
 	<item>
@@ -122,8 +120,8 @@
 	<property name="name">menu2111</property>
 	<property name="id">$INFO[skin.string(menu2111.master)]</property>
 	<onclick condition="Window.IsVisible(6000)">SetFocus(5000)</onclick>
-	<onclick condition="Window.IsVisible(Home)">Close</onclick>
-	<onclick condition="Window.IsVisible(Home)">$VAR[value_menu2111.action]</onclick>
+	<onclick condition="Window.IsVisible(Home)">Dialog.Close(6021)</onclick>
+	<onclick condition="Window.IsVisible(Home)">Skin.SetString(submenu_action,$VAR[value_menu2111.action])</onclick>
 	<visible>![IsEmpty(skin.string(menu2111.master)) | SubString(skin.string(menu2111.visible),off)] | Window.IsVisible(6000)</visible>
 	</item>
 	<item>
@@ -132,8 +130,8 @@
 	<property name="name">menu2112</property>
 	<property name="id">$INFO[skin.string(menu2112.master)]</property>
 	<onclick condition="Window.IsVisible(6000)">SetFocus(5000)</onclick>
-	<onclick condition="Window.IsVisible(Home)">Close</onclick>
-	<onclick condition="Window.IsVisible(Home)">$VAR[value_menu2112.action]</onclick>
+	<onclick condition="Window.IsVisible(Home)">Dialog.Close(6021)</onclick>
+	<onclick condition="Window.IsVisible(Home)">Skin.SetString(submenu_action,$VAR[value_menu2112.action])</onclick>
 	<visible>![IsEmpty(skin.string(menu2112.master)) | SubString(skin.string(menu2112.visible),off)] | Window.IsVisible(6000)</visible>
 	</item>
 	</content>