2021-06-13, 23:37
Hello, I have some radiobuttons and I want to put them in one setting in a window, so when I click on the setting, a window opens with all the radiobuttons. Do you know how to do that please ?
Thanks
Thanks
xml:<control type="button" id="919">
<label>$LOCALIZE[40369]</label>
<include>DefaultSettingButton</include>
<onclick>ActivateWindow(1163)</onclick>
<label2>$VAR[ThumbnailsSeasonsSettingLabel2Var]</label2>
</control>
xml:<?xml version="1.0" encoding="UTF-8"?>
<window id="1163" type="dialog">
<defaultcontrol>2</defaultcontrol>
<coordinates>
<left>500</left>
<top>100</top>
</coordinates>
<controls>
<include condition="[Skin.HasSetting(BarH)]">BarHaut</include>
<control type="radiobutton" id="711">
<label>$LOCALIZE[40342]</label>
<include>DefaultSettingButton</include>
<selected>!Skin.HasSetting(BarH)</selected>
<onclick>Skin.ToggleSetting(BarH)</onclick>
</control>
<include condition="[Skin.HasSetting(BarB)]">BarBas</include>
<control type="radiobutton" id="710">
<label>$LOCALIZE[40341]</label>
<include>DefaultSettingButton</include>
<selected>!Skin.HasSetting(BarB)</selected>
<onclick>Skin.ToggleSetting(BarB)</onclick>
</control>
</controls>
</window>
custom
.<include name="DefaultDialogSelectLayout">
control.xml:<?xml version="1.0" encoding="UTF-8"?>
<window id="1163" type="dialog">
<defaultcontrol>2</defaultcontrol>
<coordinates>
<left>0</left>
<top>0</top>
</coordinates>
<controls>
<control type="group">
<centertop>50%</centertop>
<centerleft>50%</centerleft>
<height>750</height>
<width>1220</width>
<include content="DialogBackgroundCommons">
<param name="width" value="1220" />
<param name="height" value="750" />
<param name="header_label" value="" />
<param name="header_id" value="1" />
</include>
<control type="image">
<left>0</left>
<top>80</top>
<width>920</width>
<bottom>2</bottom>
<texture border="40">buttons/dialogbutton-nofo.png</texture>
</control>
<control type="grouplist" id="110">
<top>100</top>
<left>5</left>
<width>900</width>
<control type="radiobutton" id="710">
<label>$LOCALIZE[40342]</label>
<include>DefaultSettingButton</include>
<selected>!Skin.HasSetting(BarH)</selected>
<onclick>Skin.ToggleSetting(BarH)</onclick>
</control>
<control type="radiobutton" id="711">
<label>$LOCALIZE[40341]</label>
<include>DefaultSettingButton</include>
<selected>!Skin.HasSetting(BarB)</selected>
<onclick>Skin.ToggleSetting(BarB)</onclick>
</control>
</control>
<control type="scrollbar" id="61">
<left>910</left>
<top>100</top>
<width>12</width>
<bottom>20</bottom>
<onleft condition="Control.IsVisible(3)">3</onleft>
<onleft condition="Control.IsVisible(6)">6</onleft>
<onright>9001</onright>
<orientation>vertical</orientation>
</control>
<control type="label">
<left>925</left>
<bottom>10</bottom>
<width>275</width>
<height>35</height>
<font>font12</font>
<align>right</align>
<textcolor>grey</textcolor>
<label>$VAR[SelectLabel]</label>
</control>
<control type="grouplist" id="9001">
<left>920</left>
<top>80</top>
<onleft>61</onleft>
<itemgap>dialogbuttons_itemgap</itemgap>
<onright>3</onright>
<include content="DefaultDialogButton">
<param name="id" value="5" />
<param name="label" value="" />
</include>
<include content="DefaultDialogButton">
<param name="id" value="8" />
<param name="label" value="" />
</include>
<include content="DefaultDialogButton">
<param name="id" value="7" />
<param name="label" value="$LOCALIZE[222]" />
</include>
</control>
</control>
</controls>
</window>
<defaultcontrol>2</defaultcontrol>
to 110
or 710
.(2021-06-15, 18:57)Hitcher Wrote: [ -> ]Change<defaultcontrol>2</defaultcontrol>
to110
or710
.