MCPcopy
hub / github.com/lxn/walk / MultiSelection

Method MultiSelection

tableview.go:1309–1317  ·  view source on GitHub ↗

MultiSelection returns whether multiple items can be selected at once. By default only a single item can be selected at once.

()

Source from the content-addressed store, hash-verified

1307//
1308// By default only a single item can be selected at once.
1309func (tv *TableView) MultiSelection() bool {
1310 style := uint(win.GetWindowLong(tv.hwndNormalLV, win.GWL_STYLE))
1311 if style == 0 {
1312 lastError("GetWindowLong")
1313 return false
1314 }
1315
1316 return style&win.LVS_SINGLESEL == 0
1317}
1318
1319// SetMultiSelection sets whether multiple items can be selected at once.
1320func (tv *TableView) SetMultiSelection(multiSel bool) error {

Callers 2

SetCurrentIndexMethod · 0.95
lvWndProcMethod · 0.95

Calls 1

lastErrorFunction · 0.85

Tested by

no test coverage detected