diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-28 22:16:45 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-28 22:16:45 -0400 |
| commit | 3c34f22373d75d09829772c619aa71124aa399a1 (patch) | |
| tree | 4b75eb1872293021fa2e4d3742e0afe3ea48300d | |
| parent | 5a70accb2ff053d5487a29f2dc42978227a579aa (diff) | |
Fixed up borders for currently implemented controls on Windows.
| -rw-r--r-- | redo/controls_windows.go | 4 | ||||
| -rw-r--r-- | redo/table_windows.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/redo/controls_windows.go b/redo/controls_windows.go index 2bbe64a..882c15d 100644 --- a/redo/controls_windows.go +++ b/redo/controls_windows.go @@ -134,8 +134,8 @@ var editclass = toUTF16("EDIT") func startNewTextField(style C.DWORD) *textField { w := newWidget(editclass, - style | C.ES_AUTOHSCROLL | C.ES_LEFT | C.ES_NOHIDESEL | C.WS_BORDER | C.WS_TABSTOP, - C.WS_EX_CLIENTEDGE) // shows visual style-themed edit control borders (TODO get credit from old source) + style | C.ES_AUTOHSCROLL | C.ES_LEFT | C.ES_NOHIDESEL | C.WS_TABSTOP, + C.WS_EX_CLIENTEDGE) // WS_EX_CLIENTEDGE without WS_BORDER will show the canonical visual styles border (thanks to MindChild in irc.efnet.net/#winprog) C.controlSetControlFont(w.hwnd) return &textField{ widgetbase: w, diff --git a/redo/table_windows.go b/redo/table_windows.go index 4711e37..8dd9049 100644 --- a/redo/table_windows.go +++ b/redo/table_windows.go @@ -19,7 +19,7 @@ func finishNewTable(b *tablebase, ty reflect.Type) Table { t := &table{ widgetbase: newWidget(C.xWC_LISTVIEW, C.LVS_REPORT | C.LVS_OWNERDATA | C.LVS_NOSORTHEADER | C.LVS_SHOWSELALWAYS | C.WS_HSCROLL | C.WS_VSCROLL, - 0), // TODO WS_EX_CLIENTEDGE? + C.WS_EX_CLIENTEDGE), // WS_EX_CLIENTEDGE without WS_BORDER will show the canonical visual styles border (thanks to MindChild in irc.efnet.net/#winprog) tablebase: b, } C.setTableSubclass(t.hwnd, unsafe.Pointer(&t)) |
