commit-gnue
[Top][All Lists]
Advanced

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

r5787 - in trunk/gnue-forms: samples/zipcode src/GFObjects


From: jcater
Subject: r5787 - in trunk/gnue-forms: samples/zipcode src/GFObjects
Date: Fri, 7 May 2004 22:11:38 -0500 (CDT)

Author: jcater
Date: 2004-05-07 22:11:37 -0500 (Fri, 07 May 2004)
New Revision: 5787

Modified:
   trunk/gnue-forms/samples/zipcode/states.gfd
   trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
When down-arrowing to a new record, go to first field of record


Modified: trunk/gnue-forms/samples/zipcode/states.gfd
===================================================================
--- trunk/gnue-forms/samples/zipcode/states.gfd 2004-05-07 09:25:24 UTC (rev 
5786)
+++ trunk/gnue-forms/samples/zipcode/states.gfd 2004-05-08 03:11:37 UTC (rev 
5787)
@@ -38,7 +38,6 @@
       <label name="Label_5" rows="1" text="Zip" c:x="27" c:y="9"/>
       <entry block="cities" field="zip" c:width="10" c:x="27" c:y="10"/>
       <entry block="cities" field="zop" hidden="" c:width="1" c:x="27" 
c:y="1"/>
-      <entry block="blkstate" field="entdesc" rows="1" c:width="30" c:x="7" 
c:y="12"/>
     </page>
   </layout>
 </form>

Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py   2004-05-07 09:25:24 UTC (rev 
5786)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py   2004-05-08 03:11:37 UTC (rev 
5787)
@@ -295,10 +295,10 @@
 
       self._recordCount = self._resultSet.getRecordCount()
       self.switchRecord(1)
-
       # Focus in
       self.processTrigger('PRE-FOCUSIN')
       self.processTrigger('ON-NEWRECORD')
+
       self.processTrigger('POST-FOCUSIN')
 
   def nextRecord(self):
@@ -320,8 +320,11 @@
 
     elif self._autocreate and not self.isEmpty() and not self.restrictInsert:
       self.newRecord()
+      # Go to first field
+      self._form.findAndChangeFocus(self._entryList[0])
 
 
+
   def lastRecord(self):
     if not self._resultSet.isLastRecord():
       # Do FocusOut triggers





reply via email to

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