/[gnue]/gnue-samples/testcases/trigger/subformB.gfd
ViewVC logotype

Diff of /gnue-samples/testcases/trigger/subformB.gfd

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jamest, Wed Nov 27 21:29:17 2002 UTC revision 1.3 by siesel, Thu Jul 31 12:58:14 2003 UTC
# Line 1  Line 1 
1  <?xml version="1.0"?>  <?xml version="1.0"?>
2    
3  <!--  GNUe Designer (0.4.0a)  <!--  GNUe Forms 0.5.0 Migration Tool
4        Saved on: 2002-09-28 15:44:24  -->        Saved on: 2003-07-31 13:37:27  -->
5    
6  <form height="16" title="Subform Sample" width="50">  <form title="Subform Sample">
7    <options>    <options>
8      <option name="version" value="0.0.1"/>      <option name="version" value="0.0.1"/>
9      <option name="author" value="GNUE Enterprise Developers"/>      <option name="author" value="GNUE Enterprise Developers"/>
10    </options>    </options>
11    <trigger name="opensubform" type="NAMED"><![CDATA[    <trigger name="opensubform" type="NAMED"><![CDATA[
12          params={"x":theblock.xval,\          params={"x":theblock.xval,\
13                  "y":theblock.yval,\                  "y":theblock.yval,\
14                  "n":theblock.nval}                  "n":theblock.nval}
15          runForm("subformA.gfd",params)          runForm("subformA.gfd") # params)
16    ]]></trigger>    ]]></trigger>
17    <trigger name="setparamvalues" type="ON-STARTUP"><![CDATA[    <trigger name="setparamvalues" type="ON-STARTUP"><![CDATA[
18          theblock.xval=getParameter("x")          theblock.xval=getParameter("x")
19          theblock.yval=getParameter("y")          theblock.yval=getParameter("y")
20          theblock.nval=getParameter("n")          theblock.nval=getParameter("n")
21          print getParameter("x")          print getParameter("x")
22    ]]></trigger>    ]]></trigger>
23    <page name="Page_1">    <logic>
24      <block name="theblock">      <block name="theblock">
25        <label name="Label_0" text="Parameter:" width="15"        <field name="xval" typecast="number"/>
26               x="1" y="3"/>        <field name="yval" typecast="number"/>
27        <entry name="xval" typecast="number" width="16" x="4" y="4"/>        <field name="nval" typecast="number"/>
28        <entry name="yval" typecast="number" width="16" x="4" y="5"/>      </block>
29        <entry name="nval" typecast="number" width="16" x="4" y="6"/>    </logic>
30        <button height="1" label="Open Form A" name="two" trigger="opensubform"    <layout xmlns:c="GNUe:Layout:Char" c:height="16" c:width="50">
31                width="19" x="1" y="8"/>      <page name="Page_1">
32      </block>        <label name="Label_1" text="x=" c:width="2" c:x="1" c:y="4"/>
33      <label name="Label_1" text="x=" width="2" x="1" y="4"/>        <label name="Label_2" text="y=" c:width="2" c:x="1" c:y="5"/>
34      <label name="Label_2" text="y=" width="2" x="1" y="5"/>        <label name="Label_3" text="n=" c:width="2" c:x="1" c:y="6"/>
35      <label name="Label_3" text="n=" width="2" x="1" y="6"/>        <label name="Label_4" text="Subform Test (Form B)" c:width="21" c:x="1"
36      <label name="Label_4" text="Subform Test (Form B)" width="21" x="1" y="1"/>               c:y="1"/>
37    </page>        <label name="Label_0" text="Parameter:" c:width="15" c:x="1" c:y="3"/>
38  </form>        <entry block="theblock" field="xval" c:width="16" c:x="4" c:y="4"/>
39          <entry block="theblock" field="yval" c:width="16" c:x="4" c:y="5"/>
40          <entry block="theblock" field="nval" c:width="16" c:x="4" c:y="6"/>
41          <button name="two" c:height="1" label="Open Form A" c:width="19" c:x="1"
42                  c:y="8">
43            <trigger src="opensubform" type="On-Action"/>
44          </button>
45        </page>
46      </layout>
47    </form>

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26