MultiSelection returns whether multiple items can be selected at once. By default only a single item can be selected at once.
()
| 1307 | // |
| 1308 | // By default only a single item can be selected at once. |
| 1309 | func (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. |
| 1320 | func (tv *TableView) SetMultiSelection(multiSel bool) error { |
no test coverage detected