From 3084d0f243299b40ebdaf2f0310f315e4987705a Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 16 Oct 2014 18:41:17 -0400 Subject: Implemented tabbing properly. Tab order still backwards. --- newctrl/control.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'newctrl/control.go') diff --git a/newctrl/control.go b/newctrl/control.go index 028b195..1f08ce2 100644 --- a/newctrl/control.go +++ b/newctrl/control.go @@ -8,12 +8,14 @@ type Control interface { // nChildren() int // TODO preferredSize(d *sizing) (width, height int) resize(x int, y int, width int, height int, d *sizing) + nTabStops() int } type controlbase struct { fsetParent func(p *controlParent) fpreferredSize func(d *sizing) (width, height int) fresize func(x int, y int, width int, height int, d *sizing) + fnTabStops func() int } func (c *controlbase) setParent(p *controlParent) { @@ -27,3 +29,7 @@ func (c *controlbase) preferredSize(d *sizing) (width, height int) { func (c *controlbase) resize(x int, y int, width int, height int, d *sizing) { c.fresize(x, y, width, height, d) } + +func (c *controlbase) nTabStops() int { + return c.fnTabStops() +} -- cgit v1.2.3