commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r6156 - trunk/gnue-forms/dialogs


From: johannes
Subject: r6156 - trunk/gnue-forms/dialogs
Date: Fri, 6 Aug 2004 03:03:20 -0500 (CDT)

Author: johannes
Date: 2004-08-06 03:03:19 -0500 (Fri, 06 Aug 2004)
New Revision: 6156

Modified:
   trunk/gnue-forms/dialogs/jumpto.gfd
Log:
Refined the jumpto dialog


Modified: trunk/gnue-forms/dialogs/jumpto.gfd
===================================================================
--- trunk/gnue-forms/dialogs/jumpto.gfd 2004-08-06 07:46:12 UTC (rev 6155)
+++ trunk/gnue-forms/dialogs/jumpto.gfd 2004-08-06 08:03:19 UTC (rev 6156)
@@ -1,9 +1,6 @@
-<?xml version="1.0" encoding="iso8859-1"?>
+<?xml version="1.0" encoding="utf-8"?>
 
-<!--  GNUe Designer (0.4.99)
-      Saved on: 2003-03-03 19:02:54  -->
-
-<form style="dialog" name="_jumpto">
+<form style="dialog" name="_jumpto" title="Jump to Record">
   <trigger type="On-Startup">
     form.setFeature('GUI:MENUBAR:SUPPRESS',1)
     form.setFeature('GUI:TOOLBAR:SUPPRESS',1)
@@ -11,6 +8,7 @@
   </trigger>
   <trigger type="on-activation">
     Block_1.rollback()
+    setFocus (Block_1.Entry_1)
   </trigger>
   <options/>
   <logic>
@@ -18,32 +16,23 @@
       <field name="Entry_1" typecast="number"/>
     </block>
   </logic>
-  <layout xmlns:Char="GNUe:Layout:Char" Char:height="5" Char:width="32">
-    <page name="Page_1">
-      <label name="Label_1" Char:width="30" Char:x="1" Char:y="1"
-             text="Enter Record Number to Jump To"/>
-      <entry name="Entry1" Char:width="24" Char:x="4" Char:y="2"
-             block="Block_1" field="Entry_1"/>
-      <button name="ok" Char:height="1" Char:width="4" Char:x="4" Char:y="4"
-              label="OK">
-        <trigger name="Trigger1" type="On-Action"><![CDATA[##
-## [Button On-Action Trigger]
-##
-setParameter('recordNumber',"%s" % Block_1.Entry_1)
-close()
-
-]]></trigger>
+  <layout xmlns:c="GNUe:Layout:Char" c:height="5" c:width="32">
+    <page name="Record">
+      <label c:x="1" c:y="1" c:width="30" c:height="1"
+        text="Enter record number to jump to"/>
+      <entry c:x="1" c:y="2" c:width="30" c:height="1" block="Block_1"
+        field="Entry_1"/>
+      <button c:x="10" c:y="4" c:width="10" c:height="1" label="Ok">
+        <trigger name="OkTrigger" type="On-Action"><![CDATA[
+           setParameter('recordNumber',"%s" % Block_1.Entry_1)
+           close()]]>
+        </trigger>
       </button>
-      <button name="cancel" Char:height="1" Char:width="8" Char:x="20"
-              Char:y="4" label="Cancel">
-        <trigger name="Trigger2" type="On-Action"><![CDATA[##
-## [Button On-Action Trigger]
-##
-
-# Your code goes here
-setParameter('cancel',1)
-close()
-]]></trigger>
+      <button c:x="21" c:y="4" c:width="10" c:height="1" label="Cancel">
+        <trigger name="CancelTrigger" type="On-Action"><![CDATA[
+           setParameter('cancel',1)
+           close()]]>
+        </trigger>
       </button>
     </page>
   </layout>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]