<dcxml>
  <popups>
    <styles>
      <all style="icy" textcolour="$rgb(0,0,255)" bgcolour="$rgb(255,0,0)" selbordercolour="$rgb(255,255,255)" />
    </styles>

    <popup name="popup1" style="custom" background="$scriptdir\top_bg.jpg">
      <icons>
        <icon index="1,3,5,7" flags="+g" src="$mircdircontrols.icl" />
        <icon index="0" src="$mircexe" />
        <icon src="$mircexe" />
      </icons>

      <item id="1" caption="custom 1" icon="1" />
      <item id="2" caption="custom 2" icon="2" />
      <item id="3" caption="custom 3" icon="3" />
      <item id="4" caption="custom 4" icon="4" />
      <item id="5" caption="custom 5" icon="5" />
      <item id="6" caption="custom 6 (invalid icon)" icon="6" />
    </popup>

    <popup name="popup2" style="office2003" textcolour="$rgb(255,0,0)" bgcolour="$rgb(0,255,0)" >
      <item id="3" caption="meh3" />
      <item id="4" caption="meh4" />
      <item id="5" caption="meh5" />
    </popup>

    <popup name="mypopup" style="vertical">
      <icons>
        <icon index="1" src="$mircdircontrols.icl" />
        <icon index="3" src="$mircdircontrols.icl" />
        <icon index="5" src="$mircdircontrols.icl" />
      </icons>

      <item id="1" caption="meh1" command="echo 3 -s this command is stored by the item" />
      <item caption="meh2" />
      <item id="3" caption="meh3" state="+cg" />
      <item id="4" caption="meh4" />
      <item id="5" caption="meh5" />
      <blah />
      <item caption="-" />
      <item id="6" caption="icon1" icon="1" />
      <item id="7" caption="icon2" icon="2" />
      <item id="8" caption="icon3" icon="3" />
      <item id="9" caption="icon4" icon="4" />
      <item caption="-" />
      <item id="10" caption="state checked" state="+c" />
      <item id="11" caption="state grey"    state="+g" />
      <item id="12" caption="state submenu">
        <item id="1" caption="subitem 1" />
        <item id="2" caption="subitem 2" />
        <huh />
        <item id="3" caption="subitem 3" />
      </item>
      <item caption="-" />
      <item id="13" caption="meh6">
        <item id="1" caption="subitem 1">
          <item id="1" caption="nested subitem 1" icon="1" />
          <item caption="-" />
          <item id="2" caption="nested subitem 2" state="+c" />
          <item id="3" caption="nested subitem 3" state="+g" />
          <item id="4" caption="nested subitem 4" state="+cg" />
        </item>
        <item id="2" caption="subitem 2" />
        <item id="3" caption="subitem 3" />
      </item>
      <item id="14" caption="meh7">
        <bleh />
      </item>
      <item id="15" caption="meh8" />
    </popup>

    <popup name="popup3">
      <item id="1" caption="custom 1" />
      <item id="2" caption="custom 2" />
      <item id="3" caption="custom 3" />
      <item id="4" caption="custom 4" />
      <item id="5" caption="custom 5" />
      <item id="6" caption="custom 6" />
    </popup>
  </popups>

  <dialogs>
    <styles>
      <all fontsize="8" fontstyle="a" fontname="Tahoma" />
      <style class="white" bgcolour="$rgb(255,255,255)" />
      <style class="header" fontsize="17" fontstyle="ab" fontname="Trebuchet ms" textcolour="$rgb(255,255,255)" bgcolour="$rgb(128,128,128)" />
      <style class="headertext" textcolour="$rgb(255,255,255)" bgcolour="$rgb(166,166,166)" />
    </styles>
    <icons>
      <icon type="treeview" indexmax="27" src="$_scriptdir $+ controls.icl" />
      <icon type="toolbar" indexmax="27" src="$_scriptdir $+ controls.icl" />
      <icon type="button" index="20" src="$_scriptdir $+ controls.icl" />
      <icon type="listview" indexmax="27" src="$_scriptdir $+ controls.icl" />
    </icons>
    <dialog name="mydialog" w="500" h="400" center="" margin="5 0 5 0" caption="DCX Sample Dialog" border="btmnzy">
      <styles>
        <style id="40" fontsize="14" fontstyle="ab" fontname="Trebuchet ms" textcolour="0" />
      </styles>
      <control type="panel" cascade="h" height="70" weight="0">
        <control width="253" height="70" type="image" eval="1" src="$+($_scriptdir,dcx.jpg)" />
        <control width="547" type="image" eval="1" src="$+($_scriptdir,top_bg.jpg)" />
        <control type="panel" bgcolour="16318463" />

      </control>
      <control type="line" height="4" />
      <pane cascade="h" margin="5 5 5 5">
        <control type="treeview" id="tvMenu" width="200" styles="fullrow showsel" border="">
          <item caption="ProgressBar" icon="1" />
          <item caption="TreeView" icon="2" />
          <item caption="ToolBar" icon="3" />
          <item caption="StatusBar" icon="4" />
          <item caption="ListView" icon="5" />
          <item caption="TrackBar" icon="6" />
          <item caption="ReBar" icon="7" />
          <item caption="ColorCombo" icon="8" />
          <item caption="Button" icon="9" />
          <item caption="RichEdit" icon="10" />
          <item caption="IpAddress" icon="11" />
          <item caption="UpDown" icon="12" />
          <item caption="WebControl" icon="13" />
          <item caption="Line" icon="14" />
          <item caption="Box" icon="15" />
          <item caption="Radio" icon="16" />
          <item caption="Check" icon="17" />
          <item caption="Edit" icon="18" />
          <item caption="Scroll" icon="19" />
          <item caption="Image" icon="20" />
          <item caption="List " icon="21" />
          <item caption="Link" icon="22" />
          <item caption="Text" icon="23" />
          <item caption="Divider" icon="24" />
          <item caption="Panel" icon="25" />
          <item caption="Tab" icon="26" />
          <item caption="Window" icon="27" />
        </control>
        <control type="line" width="4" styles="vertical" />
        <control type="panel" margin="5 0 0 0">
          <control type="text" id="40" caption="The Progressbar Control" height="30" weight="0" />
          <control type="divider" weight="1">
            <control type="panel">
              <control type="panel" caption="ProgressBar Preview">
                <pane />
                <control id="1" eval="1" height="25" type="pbar" styles="smooth" caption="$(%d%%,0) Completed" />
                <pane />
              </control>
              <control type="panel" caption="TreeView Preview">
                <control id="2" type="treeview" styles="hasbuttons haslines linesatroot">
                  <item caption="hello!">
                    <item caption="there are">
                      <item caption="items hidden here!" />
                    </item>
                  </item>
                  <item caption="but!">
                    <item caption="also">
                      <item caption="here!" />
                    </item>
                  </item>
                </control>
              </control>
              <control type="panel" caption="ToolBar">
                <pane />
                <control id="3" type="toolbar" height="30" styles="noauto flat list arrows">
                  <item caption="hello" icon="3" />
                  <item caption="-" />
                  <item caption="these" icon="20" flags="v" />
                  <item caption="are" icon="25" />
                  <item caption="toolbar" icon="23" />
                  <item caption="buttons" icon="22" />
                </control>
                <pane />
              </control>
              <control type="panel" caption="StatusBar Preview">
                <pane />
                <control id="4" type="statusbar" height="20" styles="noauto" cells="100 200 300 400 -1">
                  <item caption="Hello $me" />
                  <control id="100" type="edit" width="100" />
                  <item caption="Whatsup!" />
                </control>
                <pane />
              </control>
              <control type="panel" caption="ListView Preview">
                <control id="5" type="listview" styles="report grid subitemimage fullrow" />
              </control>
              <control type="panel" zlayer="1" caption="TrackBar Preview">
                <pane />
                <control id="6" type="trackbar" height="30" styles="select" />
                <pane />
              </control>
              <control type="panel" caption="ReBar Preview">
                <pane />
                <control id="7" type="rebar" styles="noauto borders" height="30">
                  <control flags="ceg" minwidth="100" caption="toolbar" type="toolbar" height="30" styles="noauto flat list arrows">
                    <item caption="hello" icon="3" />
                  </control>
                  <control flags="ceg" width="100" caption="toolbar" type="toolbar" height="30" styles="noauto flat list arrows">
                    <item caption="hello" icon="3" />
                    <item caption="-" />
                    <item caption="these" icon="20" flags="v" />
                    <item caption="are" icon="25" />
                    <item caption="toolbar" icon="23" />
                    <item caption="buttons" icon="22" />
                  </control>
                </control>
                <pane />
              </control>
              <control type="panel" caption="ColorCombo Preview">
                <pane />
                <control id="8" type="colorcombo" height="400" />
                <pane />
              </control>
              <control type="panel" caption="Button Preview">
                <pane />
                <control id="9" type="button" styles="shadow" caption="this is some text!" height="25" width="200" />
                <pane />
              </control>
              <control type="panel" caption="RichEdit Preview">
                <control id="10" type="richedit" styles="multi readonly hsbar">
                  \bHello!\b
                  \c12Whats happening pirate ?\c
                  \c12,2Arrr arrrr:D\c
                  Yeah OK!
                </control>
              </control>
              <control type="panel" caption="IPAddress Preview">
                <pane />
                <control id="11" type="ipaddress" height="20" width="200" caption="$ip"/>
                <pane />
              </control>
              <control type="panel" caption="UpDown Preview">
                <pane />
                <pane height="20" cascade="h">
                  <control width="50" id="12" type="updown" styles="buddyint arrowkeys" />
                  <control type="edit" id="122" />
                </pane>
                <pane />
              </control>
              <control type="panel" caption="Web Control Preview">
                <control id="13" type="webctrl" styles="" src="http://dcx.scriptsdb.org/forum"/>
              </control>
              <control type="panel" caption="Line Preview">
                <control id="14" type="line" styles="" />
              </control>
              <control type="panel" caption="Box Control">
                <control id="15" type="box" caption="This is a box control" styles="rounded shadow" />
              </control>
              <control type="panel" caption="Radio Preview">
                <control id="16" type="radio" styles="" caption="This is a radio control" />
              </control>
              <control type="panel" caption="Check Preview">
                <control id="17" type="check" styles="" caption="This is a check control" />
              </control>
              <control type="panel" caption="Edit Prview">
                <control id="18" type="edit" styles="multi vsbar return">
                  Post emensos insuperabilis expeditionis eventus languentibus partium animis, quas periculorum varietas fregerat
                  et laborum, nondum tubarum cessante clangore vel milite locato per stationes hibernas, fortunae saevientis
                  procellae tempestates alias rebus infudere communibus per multa illa et dira facinora Caesaris Galli,
                  qui ex squalore imo miseriarum in aetatis adultae primitiis ad principale culmen insperato saltu provectus
                  ultra terminos potestatis delatae procurrens asperitate nimia cuncta foedabat. propinquitate enim regiae
                  stirpis gentilitateque etiam tum Constantini nominis efferebatur in fastus, si plus valuisset, ausurus hostilia
                  in auctorem suae felicitatis, ut videbatur.
                </control>
              </control>
              <control type="panel" caption="Scroll Preview">
                <pane />
                <control id="19" type="scroll" styles="" />
                <pane />
              </control>
              <control type="panel" caption="Image Preview">
                <control id="20" type="image" eval="1" styles="" src="$+($_scriptdir,dcx.jpg)" />
              </control>
              <control type="panel" zlayer="1" caption="List Preview" margin="10 20 10 10">
                <control id="21" type="list" styles="">
                  <item>This is line 1</item>
                  <item>This is line 2</item>
                  <item>This is line 3</item>
                  <item>This is line 4</item>
                </control>
              </control>
              <control type="panel" caption="Link Preview">
                <control id="22" type="link" styles="" caption="http://dcx.scriptsdb.org"/>
              </control>
              <control type="panel" caption="Text Preview">
                <control  id="23" type="text" styles="" caption="This is a text control"/>
              </control>
              <control type="panel" caption="Divider Preview">
                <control id="24" type="divider" styles="vertical">
                  <control type="panel" bgcolour="255" />
                  <control type="panel" bgcolour="0" />
                </control>
              </control>
              <control type="panel" caption="Panel Preview">
                <control id="25" type="panel" styles="" bgcolour="34234" />
              </control>
              <control type="panel" caption="Tab Preview">
                <control id="26" type="tab" styles="">
                  <control type="panel" caption="this is tab1" />
                  <control type="panel" caption="this is tab2" />
                </control>
              </control>
              <control type="panel" caption="Embedded Window">
                <pane />
                <pane cascade="h">
                  <pane />
                  <control width="240" height="100" id="27" type="window" styles="@japan" />
                  <pane />
                </pane>
                <pane />
              </control>
              <pane height="5" weight="0" />
              <control type="line" height="4" />

            </control>
            <control type="panel" caption="ProgressBar Events" weight="1">
              <control id="51" type="edit" styles="multi vsbar autovs return showsel" border="" caption="Mouse events are ignored"/>
            </control>
          </control>
        </control>
      </pane>
      <control type="statusbar" cells="-1" height="20">
        <item eval="1">$dcx(Version)</item>
      </control>
    </dialog>
  </dialogs>
  <treeview_data>
    <demotreeview>
      <tvitem text="xml Item 2" image="1" selectedimage="2" expandedimage="3" itegral="1" tooltip="xml tooltip 2" textbold="1" textunderline="1" textcolor="255" state="1">
        <tvitem text="xml Item 3" image="1" selectedimage="2" expandedimage="65534" itegral="1" tooltip="xml tooltip 3" overlay="2" />
        <tvitem text="xml Item 4" image="1" selectedimage="2" expandedimage="3" itegral="1" tooltip="xml tooltip 4">
          <tvitem text="xml Item 4.2" image="1" selectedimage="2" expandedimage="65534" itegral="1" tooltip="xml tooltip 4.2" />
          <tvitem text="xml Item 4.1" image="1" selectedimage="2" expandedimage="65534" itegral="1" tooltip="xml tooltip 4.1" />
        </tvitem>
        <tvitem text="xml Item 5 〠" image="1" selectedimage="2" expandedimage="65534" itegral="1" tooltip="xml tooltip 5" />
      </tvitem>
      <tvitem text="xml Item 1" image="1" selectedimage="2" expandedimage="65534" itegral="1" tooltip="xml tooltip 1" textbold="1" textunderline="1" textcolor="16711680" overlay="1" state="1" />
    </demotreeview>
  </treeview_data>
  <listview_data>
    <demolistview>
      <lvitem text="xml item1" textunderline="1" autosizemax="1" tooltip="xml tooltip1">
        <lvsubitem text="xmlsubitem1-1" icon="2" textbold="1" autosizemax="1" />
        <lvsubitem text="xmlsubitem1-2" icon="2" textunderline="1" autosizemax="1" />
      </lvitem>
      <lvitem text="xml item2" icon="1" textunderline="1" autosizemax="1" tooltip="xml tooltip2">
        <lvsubitem text="xmlsubitem2-1" icon="2" textbold="1" autosizemax="1" />
        <lvsubitem text="xmlsubitem2-2" icon="2" textunderline="1" autosizemax="1" />
      </lvitem>
      <lvitem text="xml item3" icon="1" textunderline="1" autosizemax="1" tooltip="xml tooltip3">
        <lvsubitem text="xmlsubitem3-1" icon="2" textbold="1" autosizemax="1" />
        <lvsubitem text="xmlsubitem3-2" icon="2" textunderline="1" autosizemax="1" />
      </lvitem>
    </demolistview>
  </listview_data>
</dcxml>