/[papo]/gnue/samples/testcases/trigger/subformA.gfd
ViewVC logotype

Diff of /gnue/samples/testcases/trigger/subformA.gfd

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

revision 1.1 by styxman, Fri Nov 8 17:05:30 2002 UTC revision 1.1.4.1 by anthonyl, Tue Mar 4 22:33:20 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: 2002-11-27 08:25:32  -->
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("subformB.gfd",params)          print "HI"
16    ]]></trigger>          runForm("subformB.gfd",params)
17    <trigger name="setparamvalues" type="ON-STARTUP"><![CDATA[    ]]></trigger>
18          theblock.xval=getParameter("x")    <trigger name="setparamvalues" type="ON-STARTUP"><![CDATA[
19          theblock.yval=getParameter("y")          theblock.xval=getParameter("x")
20          theblock.nval=getParameter("n")          theblock.yval=getParameter("y")
21    ]]></trigger>          theblock.nval=getParameter("n")
22    <page name="Page_1">    ]]></trigger>
23      <block name="theblock">    <logic>
24        <label name="Label_0" text="Parameter:" width="14"      <block name="theblock">
25               x="1" y="3"/>        <field name="xval" typecast="number"/>
26        <entry name="xval" typecast="number" width="16" x="4" y="4"/>        <field name="yval" typecast="number"/>
27        <entry name="yval" typecast="number" width="16" x="4" y="5"/>        <field name="nval" typecast="number"/>
28        <entry name="nval" typecast="number" width="16" x="4" y="6"/>      </block>
29        <button height="1" label="Open Form B" name="two" trigger="opensubform"    </logic>
30                width="19" x="1" y="8"/>    <layout xmlns:c="GNUe:Layout:Char" c:height="16" c:width="50">
31      </block>      <page name="Page_1">
32      <label name="Label_1" text="x=" width="2" x="1" y="4"/>        <label name="Label_1" text="x=" c:width="2" c:x="1" c:y="4"/>
33      <label name="Label_2" text="y=" width="2" x="1" y="5"/>        <label name="Label_2" text="y=" c:width="2" c:x="1" c:y="5"/>
34      <label name="Label_3" text="n=" width="2" x="1" y="6"/>        <label name="Label_3" text="n=" c:width="2" c:x="1" c:y="6"/>
35      <label name="Label_4" text="Subform Test (Form A)" width="21" x="1" y="1"/>        <label name="Label_4" text="Subform Test (Form A)" c:width="21" c:x="1"
36    </page>               c:y="1"/>
37  </form>        <label name="Label_0" text="Parameter:" c:width="14" c:x="1" c:y="3"/>
38          <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 B" 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.1  
changed lines
  Added in v.1.1.4.1

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