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 /textfield_windows.go | |
| parent | 09db0bffffded1a68c562b2d6451c2a2b29ac279 (diff) | |
go fmt. Precursor to bug report filing.
Diffstat (limited to 'textfield_windows.go')
| -rw-r--r-- | textfield_windows.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/textfield_windows.go b/textfield_windows.go index 3fcccd0..16ce9d2 100644 --- a/textfield_windows.go +++ b/textfield_windows.go @@ -10,20 +10,20 @@ import ( import "C" type textfield struct { - _hwnd C.HWND - _textlen C.LONG - changed *event + _hwnd C.HWND + _textlen C.LONG + changed *event } var editclass = toUTF16("EDIT") func startNewTextField(style C.DWORD) *textfield { hwnd := C.newControl(editclass, - style | C.textfieldStyle, - C.textfieldExtStyle) // WS_EX_CLIENTEDGE without WS_BORDER will show the canonical visual styles border (thanks to MindChild in irc.efnet.net/#winprog) + style|C.textfieldStyle, + C.textfieldExtStyle) // WS_EX_CLIENTEDGE without WS_BORDER will show the canonical visual styles border (thanks to MindChild in irc.efnet.net/#winprog) t := &textfield{ - _hwnd: hwnd, - changed: newEvent(), + _hwnd: hwnd, + changed: newEvent(), } C.controlSetControlFont(t._hwnd) C.setTextFieldSubclass(t._hwnd, unsafe.Pointer(t)) @@ -86,7 +86,7 @@ func (t *textfield) allocate(x int, y int, width int, height int, d *sizing) []* const ( // from http://msdn.microsoft.com/en-us/library/windows/desktop/dn742486.aspx#sizingandspacing - textfieldWidth = 107 // this is actually the shorter progress bar width, but Microsoft only indicates as wide as necessary + textfieldWidth = 107 // this is actually the shorter progress bar width, but Microsoft only indicates as wide as necessary textfieldHeight = 14 ) |
