From ffe90eb659b67b1b857b6a36009a7618a03624db Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 14 Feb 2014 22:10:35 -0500 Subject: [PATCH] Added scrollbars to Listbox. --- sysdata_windows.go | 5 +++-- todo.md | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdata_windows.go b/sysdata_windows.go index 16a5069..5c1345d 100644 --- a/sysdata_windows.go +++ b/sysdata_windows.go @@ -68,9 +68,10 @@ var classTypes = [nctypes]*classData{ }, c_listbox: &classData{ name: "LISTBOX", - style: 0 | controlstyle, + // TODO also _WS_HSCROLL? + style: _WS_VSCROLL | controlstyle, xstyle: 0 | controlxstyle, - altStyle: _LBS_EXTENDEDSEL | controlstyle, + altStyle: _LBS_EXTENDEDSEL | _WS_VSCROLL | controlstyle, appendMsg: _LB_ADDSTRING, insertAfterMsg: _LB_INSERTSTRING, deleteMsg: _LB_DELETESTRING, diff --git a/todo.md b/todo.md index 57fd2ab..f8403ba 100644 --- a/todo.md +++ b/todo.md @@ -9,7 +9,6 @@ so I don't forget: - password entry fields, character-limited entry fields, numeric entry fields, multiline entry fields - possible rename of LineEdit? - more flexible size appropriation: allow a small button to be at the top of everything in the main() example here -- scrollbars on listboxes (shouldn't they be automatic? or is that just wine being dumb?) - [Windows] should ListBox have a border style? - padding and spacing in Stack; maybe a setting in Stack which keeps controls at their preferred size? - change Stack/Combobox/Listbox constructors so that there's a separate constructor for each variant, rather than passing in parameters?