SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Removes all column header graphics.
VB.NET | object.ClearImages() |
VB | object.ClearImages |
C#.NET | void object.ClearImages(); |
VC++ | HRESULT object->ClearImages(); |
C | HRESULT object->raw_ClearImages(); |
object
The ClearImages method removes all column header graphics.
Column header pictures are defined using the Header.Image property.
companyList.get_Cell(index, 5).Text = Country companyList.get_Cell(index, 6).Text = Phone companyList.get_Cell(index, 7).Text = Fax End Sub Private Sub PerformSort(ByVal column As Short, ByVal dir As SftBoxSortConstants) sortDirection = dir sortedColumn = column companyList.Headers.ClearImages() If sortDirection = SftBoxSortConstants.sortSftBoxAscending Then companyList.get_Header(column).Image.Appearance = SftPictureImageConstants.sftImageSortAsc Else companyList.get_Header(column).Image.Appearance = SftPictureImageConstants.sftImageSortDesc End If companyList.Items.Sort(-1, sortedColumn, sortDirection) End Sub
If AreaType = areaSftBoxColumn Then If SortedColumn = ColNum Then If CompanyList.Header(ColNum).Image.Appearance = sftImageSortAsc Then CompanyList.Header(ColNum).Image.Appearance = sftImageSortDesc Else CompanyList.Header(ColNum).Image.Appearance = sftImageSortAsc End If Else CompanyList.Headers.ClearImages CompanyList.Header(ColNum).Image.Appearance = sftImageSortAsc End If SortedColumn = ColNum PerformSort End If End Sub
companyList.get_Cell(index, 6).Text = Phone; companyList.get_Cell(index, 7).Text = Fax; } private void PerformSort(short column, SftBoxSortConstants dir) { sortDirection = dir; sortedColumn = column; companyList.Headers.ClearImages(); if (sortDirection == SftBoxSortConstants.sortSftBoxAscending) companyList.get_Header(column).Image.Appearance = SftPictureImageConstants.sftImageSortAsc; else companyList.get_Header(column).Image.Appearance = SftPictureImageConstants.sftImageSortDesc; companyList.Items.Sort(-1, sortedColumn, sortDirection); }
} void CDataInputDlg::PerformSort(short column, SftBoxSortConstants dir) { m_sortDirection = dir; m_sortedColumn = column; ISftBoxPtr vCompanyList = m_CompanyList.GetControlUnknown(); vCompanyList->Headers->ClearImages(); if (m_sortDirection == sortSftBoxAscending) vCompanyList->Header[column]->Image->Appearance = sftImageSortAsc; else vCompanyList->Header[column]->Image->Appearance = sftImageSortDesc; vCompanyList->Items->Sort(-1, m_sortedColumn, m_sortDirection); }
See Also SftBoxHeaders Object | Object Hierarchy