summaryrefslogtreecommitdiff
path: root/newctrl/grid.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-16 18:41:17 -0400
committerPietro Gagliardi <[email protected]>2014-10-16 18:41:17 -0400
commit3084d0f243299b40ebdaf2f0310f315e4987705a (patch)
treecde5115c080fab26d7958981d426d685b623f759 /newctrl/grid.go
parent634ef7d4d9f96a556962167e2cd3d839f8528d5c (diff)
Implemented tabbing properly. Tab order still backwards.
Diffstat (limited to 'newctrl/grid.go')
-rw-r--r--newctrl/grid.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/newctrl/grid.go b/newctrl/grid.go
index 3c6f343..98abf9b 100644
--- a/newctrl/grid.go
+++ b/newctrl/grid.go
@@ -423,3 +423,11 @@ func (g *grid) preferredSize(d *sizing) (width, height int) {
return colwidth + (g.xmax-1)*d.xpadding,
rowheight + (g.ymax-1)*d.ypadding
}
+
+func (g *grid) nTabStops() int {
+ n := 0
+ for _, c := range g.controls {
+ n += c.control.nTabStops()
+ }
+ return n
+}