dabo Commit
Revision 6385
Date: 2011-02-03 15:27:11 -0800 (Thu, 03 Feb 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6385

Changed:
U   trunk/dabo/ui/uiwx/dGrid.py

Log:
Applied Jacek's patches from ticket #1389


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2011-02-03 23:18:55 UTC (rev 6384)
+++ trunk/dabo/ui/uiwx/dGrid.py 2011-02-03 23:27:11 UTC (rev 6385)
@@ -1833,7 +1833,7 @@
                # These hold the values that affect row/col hiliting
                self._selectionForeColor = "black"
                self._selectionBackColor = "yellow"
-               self._selectionMode = "cell"
+               self._selectionMode = "Cell"
                self._modeSet = False
                self._multipleSelection = True
                # Track the last row and col selected
@@ -3300,6 +3300,11 @@
                        self.CurrentRow = self.getBizobj().RowNumber
                except AttributeError:
                        pass
+               # On Win, when row is deleted, active row remains unselected.
+               if self.SelectionMode == "Row":
+                       row = self.CurrentRow
+                       if row not in self.Selection:
+                               self.SelectRow(row)
 
 
        def _syncColumnCount(self):



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to