2011-03-24, 11:01
I created a new xml file custom16.xml,and added in the mainmenu in home.xml.
when click the main menu in homepage,the new dialog will popup.it's no problem.
this is the new xml file:
i want do something when click the button in new window,but i don't know where should i put the code.
Code:
<onclick>ActivateWindow(4567)</onclick>
when click the main menu in homepage,the new dialog will popup.it's no problem.
this is the new xml file:
Code:
<window id="4567" type="dialog">
<defaultcontrol>2</defaultcontrol>
<allowoverlay>yes</allowoverlay>
<visible>true</visible>
<coordinates>
<system>1</system>
<posX>200</posX>
<posY>100</posY>
</coordinates>
<controls>
<control type="button" id="2">
<description>test button</description>
<posx>100</posx>
<posy>100</posy>
<width>100</width>
<height>100</height>
<onclick></onclick>
</control>
</controls>
</window>
i want do something when click the button in new window,but i don't know where should i put the code.