diff --git a/controlcandidates.md b/controlcandidates.md index 98df54c..f4bb66c 100644 --- a/controlcandidates.md +++ b/controlcandidates.md @@ -21,8 +21,6 @@ WINDOWS - OpenGL: http://msdn.microsoft.com/en-us/library/windows/desktop/dd374379%28v=vs.85%29.aspx - don't use ES_NUMBER for number-only text boxes, as "it is still possible to paste non-digits into the edit control." (though a commenter on MSDN says that's wrong?) - might want to just have spinners and not numeric text boxes??? -- TODO - - add LBS_NOINTEGRALHEIGHT to our regular listboxes? GTK+ - GtkCalendar for date selection (TODO doesn't handle times) diff --git a/sysdata_windows.go b/sysdata_windows.go index 15249cd..acc5b52 100644 --- a/sysdata_windows.go +++ b/sysdata_windows.go @@ -87,9 +87,10 @@ var classTypes = [nctypes]*classData{ name: "LISTBOX", // TODO also _WS_HSCROLL? // we don't use _LBS_STANDARD because it sorts - style: _LBS_NOTIFY | _WS_BORDER | _WS_VSCROLL | controlstyle, + // _LBS_NOINTEGRALHEIGHT gives us exactly the size we want + style: _LBS_NOTIFY | _WS_BORDER | _LBS_NOINTEGRALHEIGHT | _WS_VSCROLL | controlstyle, xstyle: 0 | controlxstyle, - altStyle: _LBS_EXTENDEDSEL | _LBS_NOTIFY | _WS_BORDER | _WS_VSCROLL | controlstyle, + altStyle: _LBS_EXTENDEDSEL | _LBS_NOTIFY | _LBS_NOINTEGRALHEIGHT | _WS_BORDER | _WS_VSCROLL | controlstyle, appendMsg: _LB_ADDSTRING, insertBeforeMsg: _LB_INSERTSTRING, deleteMsg: _LB_DELETESTRING, diff --git a/todo.md b/todo.md index d874243..ff6ef3f 100644 --- a/todo.md +++ b/todo.md @@ -5,8 +5,8 @@ so I don't forget: - character-limited entry fields, numeric entry fields, multiline entry fields - possible rename of LineEdit? - especially for password fields - NewPasswordEntry()? -- [Mac OS X] Listbox should have a border style - - [Windows] a different border on LineEdits and Listboxes? +- [all platforms] Listbox should have a border style + - [Windows] a different border on LineEdits and Listboxes - padding and spacing in Stack - allow Combobox to have initial settings - Combobox and Listbox insertions and deletions should allow bulk (...string) @@ -43,7 +43,7 @@ important things: - make gcc (Unix)/clang (Mac OS X) pedantic about warnings/errors; also -Werror - make sure scrollbars in Listbox work identically on all platforms (specifically the existence and autohiding of both horizontal and vertical scrollbars) - pin down this behavior; also note non-editability -- the size of Listboxes on Windows does not fill the requested space completely (wait, wasn't there a style that governed this?) +- listboxes spanning the vertical height of the window don't always align with the bottom border of the edit control attached to the bottom of the window... - make sure mouse events don't trigger if the control size is larger than the Area size and the mouse event happens outside the Area range on all platforms super ultra important things: