// Dispose releases the operating system resources, associated with the // *TableView. func (tv *TableView) Dispose() { tv.columns.unsetColumnsTV() tv.disposeImageListAndCaches() if tv.hWnd != 0 { if !win.KillTimer(tv.hWnd, tableViewCurrentIndexChangedTimerId) { lastError("KillTimer") } if !win.KillTimer(tv.hWnd, tableViewSelectedIndexesChangedTimerId) { lastError("KillTimer") } } tv.WidgetBase.Dispose() }
// Dispose releases the operating system resources, associated with the // *TableView. func (tv *TableView) Dispose() { tv.columns.unsetColumnsTV() if tv.model != nil { tv.detachModel() } if tv.hWnd != 0 { if !win.KillTimer(tv.hWnd, tableViewCurrentIndexChangedTimerId) { lastError("KillTimer") } if !win.KillTimer(tv.hWnd, tableViewSelectedIndexesChangedTimerId) { lastError("KillTimer") } } tv.WidgetBase.Dispose() }