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
Defines the appearance of the column headers.
Get
VB.NET | Style = object.Style As SftDirectoryHeadersStyleConstants |
VB | Style = object.Style As SftDirectoryHeadersStyleConstants |
C#.NET | SftDirectoryHeadersStyleConstants Style = object.Style; |
VC++ | enum SftDirectoryHeadersStyleConstants Style = object->Style; enum SftDirectoryHeadersStyleConstants Style = object->GetStyle(); |
C | HRESULT object->get_Style(enum SftDirectoryHeadersStyleConstants* Style); |
Put
VB.NET | object.Style = Style As SftDirectoryHeadersStyleConstants |
VB | object.Style = Style As SftDirectoryHeadersStyleConstants |
C#.NET | SftDirectoryHeadersStyleConstants object.Style = Style; |
VC++ | enum SftDirectoryHeadersStyleConstants object->Style = Style; void object->PutStyle(enum SftDirectoryHeadersStyleConstants Style); |
C | HRESULT object->put_Style(enum SftDirectoryHeadersStyleConstants Style); |
object
A SftDirectoryHeaders object.
Style
Defines the appearance of the column headers.
Style | Value | Description |
---|---|---|
headersSftDirectoryNone | 0 | None - Column headers are not displayed. |
headersSftDirectoryButton | 1 | Button - Column headers are displayed as buttons, which can be clicked. |
headersSftDirectoryTitle | 2 | Title - Column headers are displayed as titles, which cannot be clicked. |
The Style property defines the appearance of the column headers.
The ComboBoxStyle property defines which portions of a combo box style control (see ControlStyle) have column headers.
The Style property defines the appearance of the column headers and must be set to headersSftDirectoryButton, otherwise the end-user cannot click on column headers for sorting purposes (see Sortable property).
Private Sub CheckShowHeaders_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckShowHeaders.CheckedChanged Dim style As SftDirectoryHeadersStyleConstants If CheckShowHeaders.CheckState = CheckState.Checked Then style = SftDirectoryHeadersStyleConstants.headersSftDirectoryButton Else style = SftDirectoryHeadersStyleConstants.headersSftDirectoryNone End If AxSftDirectoryTV.Headers.Style = style AxSftDirectoryDL.Headers.Style = style AxSftDirectoryTV_Combo.Headers.Style = style AxSftDirectoryDL_Combo.Headers.Style = style End Sub Private Sub AxSftDirectoryTV_CheckBoxClicked(ByVal sender As Object, ByVal e As AxSftDirectoryLib30._ISftDirectoryEvents_CheckBoxClickedEvent) Handles AxSftDirectoryTV.CheckBoxClicked If e.newValue <> SftDirectoryCheckBoxValueConstants.checkboxSftDirectoryNo And _
Private Sub CheckShowHeaders_Click() Dim Style As SftDirectoryHeadersStyleConstants If CheckShowHeaders.Value <> 0 Then Style = headersSftDirectoryButton Else Style = headersSftDirectoryNone End If SftDirectoryTV.Headers.Style = Style SftDirectoryDL.Headers.Style = Style SftDirectoryTV_Combo.Headers.Style = Style SftDirectoryDL_Combo.Headers.Style = Style End Sub Private Sub SftDirectoryTV_CheckBoxClicked(ByVal Folder As SftDirectoryLib30.ISftDirectoryFolder, ByVal OldValue As SftDirectoryLib30.SftDirectoryCheckBoxValueConstants, NewValue As SftDirectoryLib30.SftDirectoryCheckBoxValueConstants) If NewValue <> checkboxSftDirectoryNo And NewValue <> checkboxSftDirectoryYes Then
private void CheckShowHeaders_CheckedChanged(object sender, System.EventArgs e) { SftDirectoryHeadersStyleConstants style; if (CheckShowHeaders.CheckState == CheckState.Checked) style = SftDirectoryHeadersStyleConstants.headersSftDirectoryButton; else style = SftDirectoryHeadersStyleConstants.headersSftDirectoryNone; axSftDirectoryTV.Headers.Style = style; axSftDirectoryDL.Headers.Style = style; axSftDirectoryTV_Combo.Headers.Style = style; axSftDirectoryDL_Combo.Headers.Style = style; } private void axSftDirectoryTV_CheckBoxClicked(object sender, AxSftDirectoryLib30._ISftDirectoryEvents_CheckBoxClickedEvent e) { if (e.newValue != SftDirectoryCheckBoxValueConstants.checkboxSftDirectoryNo && e.newValue != SftDirectoryCheckBoxValueConstants.checkboxSftDirectoryYes) {
SftDirectoryHeadersStyleConstants style; if (m_CheckShowHeaders.GetCheck()) style = headersSftDirectoryButton; else style = headersSftDirectoryNone; ISftDirectoryPtr vDirTV = m_SftDirectoryTV.GetControlUnknown(); vDirTV->Headers->Style = style; ISftDirectoryPtr vDirDL = m_SftDirectoryDL.GetControlUnknown(); vDirDL->Headers->Style = style; ISftDirectoryPtr vDirTV_Combo = m_SftDirectoryTV_Combo.GetControlUnknown(); vDirTV_Combo->Headers->Style = style; ISftDirectoryPtr vDirDL_Combo = m_SftDirectoryDL_Combo.GetControlUnknown(); vDirDL_Combo->Headers->Style = style; }
See Also SftDirectoryHeaders Object | Object Hierarchy