From 92c7598d9d0b1ec8a68f55c8a8a9e46ca1a1db50 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 23 Oct 2014 16:54:21 -0400 Subject: Added Textbox and implemented it on Windows. --- textfield_windows.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'textfield_windows.go') 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) } -- cgit v1.2.3