summaryrefslogtreecommitdiff
path: root/sysdata_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-12 14:43:40 -0400
committerPietro Gagliardi <[email protected]>2014-03-12 14:44:31 -0400
commitef86d0d15aed5ac0fbb8b71772590090441415f1 (patch)
treebfd7f263b81a96428d5c6af4ee502ebde33b9aa3 /sysdata_windows.go
parent621ab929e1d4da35dce8486bddb66d39c25556ee (diff)
Gave Listboxes a border on Windows by implementing the subset of LBS_STANDARD we want, not just WS_VSCROLL. This will also allow us to have selection changed events later.
Diffstat (limited to 'sysdata_windows.go')
-rw-r--r--sysdata_windows.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdata_windows.go b/sysdata_windows.go
index 3cc5730..fbba1fd 100644
--- a/sysdata_windows.go
+++ b/sysdata_windows.go
@@ -83,9 +83,10 @@ var classTypes = [nctypes]*classData{
c_listbox: &classData{
name: "LISTBOX",
// TODO also _WS_HSCROLL?
- style: _WS_VSCROLL | controlstyle,
+ // we don't use _LBS_STANDARD because it sorts
+ style: _LBS_NOTIFY | _WS_BORDER | _WS_VSCROLL | controlstyle,
xstyle: 0 | controlxstyle,
- altStyle: _LBS_EXTENDEDSEL | _WS_VSCROLL | controlstyle,
+ altStyle: _LBS_EXTENDEDSEL | _LBS_NOTIFY | _WS_BORDER | _WS_VSCROLL | controlstyle,
font: &controlFont,
appendMsg: _LB_ADDSTRING,
insertBeforeMsg: _LB_INSERTSTRING,