summaryrefslogtreecommitdiff
path: root/newctrl/control_windows.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/control_windows.go
parent634ef7d4d9f96a556962167e2cd3d839f8528d5c (diff)
Implemented tabbing properly. Tab order still backwards.
Diffstat (limited to 'newctrl/control_windows.go')
-rw-r--r--newctrl/control_windows.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/newctrl/control_windows.go b/newctrl/control_windows.go
index 1da8a60..687092a 100644
--- a/newctrl/control_windows.go
+++ b/newctrl/control_windows.go
@@ -21,6 +21,10 @@ func newControlSingleHWND(hwnd C.HWND) *controlSingleHWND {
c.controlbase = &controlbase{
fsetParent: c.setParent,
fresize: c.resize,
+ fnTabStops: func() int {
+ // most controls count as one tab stop
+ return 1
+ },
}
c.hwnd = hwnd
return c