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 visibility of the headers in the drop down portion.
Get
VB.NET | Boolean = object.DropDown As Boolean |
VB | Boolean = object.DropDown As Boolean |
C#.NET | bool Boolean = object.DropDown; |
VC++ | VARIANT_BOOL Boolean = object->DropDown; VARIANT_BOOL Boolean = object->GetDropDown(); |
C | HRESULT object->get_DropDown(VARIANT_BOOL* Boolean); |
Put
VB.NET | object.DropDown = Boolean As Boolean |
VB | object.DropDown = Boolean As Boolean |
C#.NET | bool object.DropDown = Boolean; |
VC++ | VARIANT_BOOL object->DropDown = Boolean; void object->PutDropDown(VARIANT_BOOL Boolean); |
C | HRESULT object->put_DropDown(VARIANT_BOOL Boolean); |
object
Boolean
Defines the visibility of the headers in the drop down portion.
Boolean | Description |
---|---|
True | The column headers are displayed as part of the drop down portion. |
False | The column headers are not displayed as part of the drop down portion. |
The DropDown property defines the visibility of the headers in the drop down portion.
The Headers.Main property can be used to define headers for the static portion or edit control portion.
It is possible to display headers in both the static portion and drop down portion, this is however not usually recommended.
End Sub
Private Sub condHeaders_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles condHeaders.CheckedChanged
' if this event occurs during form initialization, the activeX control
' may not yet be initialized completely, so we have to check for GetOcx()
If Not fontNames.GetOcx() Is Nothing Then
If condHeaders.Checked Then
fontNames.Headers.Main = True
fontNames.Headers.DropDown = False
fontStyles.Headers.Main = True
fontStyles.Headers.DropDown = False
fontSizes.Headers.Main = True
fontSizes.Headers.DropDown = False
Else
fontNames.Headers.Main = False
fontNames.Headers.DropDown = True
Private Sub Command1_Click()
Unload Form1
End Sub
Private Sub CondHeaders_Click()
If CondHeaders.Value = 0 Then
FontNames.Headers.Main = False
FontNames.Headers.DropDown = True
FontStyles.Headers.Main = False
FontStyles.Headers.DropDown = True
FontSizes.Headers.Main = False
FontSizes.Headers.DropDown = True
Else
FontNames.Headers.Main = True
FontNames.Headers.DropDown = False
FontStyles.Headers.Main = True
} else
sampleText.Text = "";
}
private void condHeaders_CheckedChanged(object sender, System.EventArgs e)
{
if (condHeaders.Checked) {
fontNames.Headers.Main = true;
fontNames.Headers.DropDown = false;
fontStyles.Headers.Main = true;
fontStyles.Headers.DropDown = false;
fontSizes.Headers.Main = true;
fontSizes.Headers.DropDown = false;
} else {
fontNames.Headers.Main = false;
fontNames.Headers.DropDown = true;
void CFontDlgDlg::OnCondheaders()
{
ISftBoxPtr vFontNames = m_FontNames.GetControlUnknown();
ISftBoxPtr vFontStyles = m_FontStyles.GetControlUnknown();
ISftBoxPtr vFontSizes = m_FontSizes.GetControlUnknown();
if (m_CondHeaders.GetCheck()) {
vFontNames->Headers->Main = VARIANT_TRUE;
vFontNames->Headers->DropDown = VARIANT_FALSE;
vFontStyles->Headers->Main = VARIANT_TRUE;
vFontStyles->Headers->DropDown = VARIANT_FALSE;
vFontSizes->Headers->Main = VARIANT_TRUE;
vFontSizes->Headers->DropDown = VARIANT_FALSE;
} else {
vFontNames->Headers->Main = VARIANT_FALSE;
vFontNames->Headers->DropDown = VARIANT_TRUE;
See Also SftBoxHeaders Object | Object Hierarchy