<?xml version="1.0"?>
<!DOCTYPE eboxy SYSTEM "eboxy.dtd">
<eboxy>
  <system>
    <plugin module="testbench" />
  </system>
  <templates>
    <labeltemplate name="t_label" autosize="true" font="FreeSansBold.ttf" fontcolor="#FFFFFF" />
    <buttontemplate name="t_button" font="FreeSansBold.ttf" fontsize="22" captionx="-3" captiony="-3" image="button_u.png" pressedimage="button_fp.png" selectedimage="button_f.png" disabledimage="button_d.png" fontdisabledcolor="#C0C0C0" />
    <buttontemplate name="t_button2" font="FreeSansBold.ttf" fontsize="22" captionx="-3" captiony="-3" image="button2_u.png" pressedimage="button2_fp.png" selectedimage="button2_f.png" disabledimage="button2_d.png" fontdisabledcolor="#C0C0C0" />
    <listboxtemplate name="t_listbox" font="FreeSans.ttf" fontsize="20" background="listboxback2.png" selitembackground="flatblue.png" selitembackgroundstyle="tiled" selitemfontcolor="#F0FF0F" scrollbarbackground="scrollbackv.png" scrollbarknob="scrollhandlev_u.png" scrollbarwidth="21" borderx="10" bordery="20" width="100" height="100" />
    <textfieldtemplate name="t_textfield" font="FreeSansBold.ttf" fontsize="16" fontcolor="#000000" background="editbox_u.png" backgroundfocus="editbox_f.png" borderx="9" bordery="8" width="400" height="40" />
    <textfieldtemplate name="t_textfieldsmall" font="FreeSansBold.ttf" fontsize="16" fontcolor="#000000" background="editboxs_u.png" backgroundfocus="editboxs_f.png" borderx="9" bordery="8" width="275" height="40" />
    <textfieldtemplate name="t_textfieldmicro" font="FreeSansBold.ttf" fontsize="16" fontcolor="#000000" background="editboxu_u.png" backgroundfocus="editboxu_f.png" borderx="9" bordery="8" width="150" height="40" />
    <scrollbartemplate name="t_scrollbarvert" background="scrollbackv.png" knob="scrollhandlev_u.png" knobfocus="scrollhandlev_f.png" height="200" width="20" />
    <scrollbartemplate name="t_scrollbar" background="scrollbackh.png" knob="scrollhandleh_u.png" knobfocus="scrollhandleh_f.png" height="20" width="200" />
    <togglebuttontemplate name="t_togglebutton" normalimage="checkbox_un.png" normalfocusimage="checkbox_fn.png" checkedimage="checkbox_uc.png" checkedfocusimage="checkbox_fc.png" />
  </templates>
  <pages>
    <page name="mainpage">
      <event type="OnLoad">
        txttype.text="button"
        testbench.initpropcontrols("lstprops", "txtpropedit", "btnpropset")
      </event>
      <label x="10" y="10" template="t_label" fontsize="26">Test Bench</label>

      <textfield name="txttype" x="50" y="50" template="t_textfieldmicro" maxlength="20" />
      <button x="270" y="50" caption="Create" template="t_button">
        <event type="OnClick">
          testbench.create(txttype.text)
        </event>
      </button>
      <button x="270" y="100" caption="Add" template="t_button">
        <event type="OnClick">
          testbench.addtopage()
        </event>
      </button>
      <button x="500" y="50" caption="Clone+Add" template="t_button">
        <event type="OnClick">
          testbench.clone()
        </event>
      </button>
      <button x="500" y="100" caption="Delete" template="t_button">
        <event type="OnClick">
          testbench.removefrompage()
          testbench.destroy()
        </event>
      </button>
      <button x="500" y="200" caption="PageTest" template="t_button">
        <event type="OnClick">
          testbench.dopagetest()
        </event>
      </button>
      <button x="500" y="250" caption="PageDel" template="t_button">
        <event type="OnClick">
          testbench.donepagetest()
        </event>
      </button>
      
      <listbox name="lstprops" x="50" y="300" width="200" height="200" template="t_listbox" />
      <textfield name="txtpropedit" x="300" y="300" template="t_textfieldmicro" maxlength="20" />
      <button name="btnpropset" x="300" y="360" caption="Set" template="t_button" />
    </page>
  </pages>
</eboxy>
