2014-11-10, 17:00
Is this still the way correct way to implement the SelectDialog function using the toolbox script?
It worked before this way with the example you posted a few posts back when you had it in the extendedinfo script, but trying it the same way using the toolbox script I can't seem to get it to work. The dialog pops up with selection labels but after selecting an option I can't seem to get the return value of the selection in the Skin.String(test123) label using the info tag below. Thanks..
It worked before this way with the example you posted a few posts back when you had it in the extendedinfo script, but trying it the same way using the toolbox script I can't seem to get it to work. The dialog pops up with selection labels but after selecting an option I can't seem to get the return value of the selection in the Skin.String(test123) label using the info tag below. Thanks..
PHP Code:
<control type="button" id="132">
<description>Dialog Test</description>
<width>20</width>
<height>20</height>
<onclick>SetProperty(Dialog.NumItems,2)</onclick>
<onclick>SetProperty(Dialog.Target,test123)</onclick>
<onclick>SetProperty(Dialog.1.Label,This is label1)</onclick>
<onclick>SetProperty(Dialog.1.Value,This is value1)</onclick>
<onclick>SetProperty(Dialog.2.Label,This is label2)</onclick>
<onclick>SetProperty(Dialog.2.Value,This is value2)</onclick>
<onclick>RunScript(script.toolbox,info=selectdialog,header=This is a Header)</onclick>
<label>-</label>
<texturefocus>/focus.png</texturefocus>
<texturenofocus>/nofocus.png</texturenofocus>
<visible>true</visible>
</control>
$INFO[Skin.String(test123)]