summaryrefslogtreecommitdiff
path: root/newctrl/label_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'newctrl/label_windows.go')
-rw-r--r--newctrl/label_windows.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/newctrl/label_windows.go b/newctrl/label_windows.go
index f926081..61d842f 100644
--- a/newctrl/label_windows.go
+++ b/newctrl/label_windows.go
@@ -22,6 +22,10 @@ func newLabel(text string) Label {
controlSingleHWNDWithText: newControlSingleHWNDWithText(hwnd),
}
l.fpreferredSize = l.preferredSize
+ l.fnTabStops = func() int {
+ // labels are not tab stops
+ return 0
+ }
l.SetText(text)
C.controlSetControlFont(l.hwnd)
return l