diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-02 10:05:53 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-02 10:05:53 -0400 |
| commit | 982004d05052ef6aadd22dd5c4e7dbca85ab324a (patch) | |
| tree | 517a0f5a5397e6fb886b5e4741aff4fa18ba10d8 /label_windows.go | |
| parent | 09db0bffffded1a68c562b2d6451c2a2b29ac279 (diff) | |
go fmt. Precursor to bug report filing.
Diffstat (limited to 'label_windows.go')
| -rw-r--r-- | label_windows.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/label_windows.go b/label_windows.go index 96daa67..df39e51 100644 --- a/label_windows.go +++ b/label_windows.go @@ -6,9 +6,9 @@ package ui import "C" type label struct { - _hwnd C.HWND - _textlen C.LONG - standalone bool + _hwnd C.HWND + _textlen C.LONG + standalone bool } var labelclass = toUTF16("STATIC") @@ -17,11 +17,11 @@ func finishNewLabel(text string, standalone bool) *label { hwnd := C.newControl(labelclass, // SS_NOPREFIX avoids accelerator translation; SS_LEFTNOWORDWRAP clips text past the end // controls are vertically aligned to the top by default (thanks Xeek in irc.freenode.net/#winapi) - C.SS_NOPREFIX | C.SS_LEFTNOWORDWRAP, + C.SS_NOPREFIX|C.SS_LEFTNOWORDWRAP, C.WS_EX_TRANSPARENT) l := &label{ - _hwnd: hwnd, - standalone: standalone, + _hwnd: hwnd, + standalone: standalone, } l.SetText(text) C.controlSetControlFont(l._hwnd) @@ -71,7 +71,7 @@ func (l *label) allocate(x int, y int, width int, height int, d *sizing) []*allo const ( // via http://msdn.microsoft.com/en-us/library/windows/desktop/dn742486.aspx#sizingandspacing - labelHeight = 8 + labelHeight = 8 labelYOffset = 3 ) |
