diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-23 16:54:21 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-23 16:54:21 -0400 |
| commit | 92c7598d9d0b1ec8a68f55c8a8a9e46ca1a1db50 (patch) | |
| tree | d8c36c8223ace0b75990e3e2d4514a929ae79f7f /textfield_windows.go | |
| parent | ba31d13c6d961545037cf0572c717e2643893180 (diff) | |
Added Textbox and implemented it on Windows.
Diffstat (limited to 'textfield_windows.go')
| -rw-r--r-- | textfield_windows.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/textfield_windows.go b/textfield_windows.go index d3b4193..1d2025b 100644 --- a/textfield_windows.go +++ b/textfield_windows.go @@ -16,13 +16,6 @@ type textfield struct { var editclass = toUTF16("EDIT") -/* -notes about multiline text boxes -- ES_LEFT | ES_MULTILINE | ES_NOHIDESEL | ES_WANTRETURN -(ES_AUTOVSCROLL as well?) -(what about word wrap?) -*/ - func startNewTextField(style C.DWORD) *textfield { hwnd := C.newControl(editclass, style|C.textfieldStyle, @@ -77,6 +70,7 @@ const ( textfieldHeight = 14 ) +// TODO allow custom preferred widths func (t *textfield) xpreferredSize(d *sizing) (width, height int) { return fromdlgunitsX(textfieldWidth, d), fromdlgunitsY(textfieldHeight, d) } |
