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 whether the control responds to user-generated events.
Get
VB.NET | Boolean = object.Enabled As Boolean |
VB | Boolean = object.Enabled As Boolean |
C#.NET | bool Boolean = object.Enabled; |
VC++ | VARIANT_BOOL Boolean = object->Enabled; VARIANT_BOOL Boolean = object->GetEnabled(); |
C | HRESULT object->get_Enabled(VARIANT_BOOL* Boolean); |
Put
VB.NET | object.Enabled = Boolean As Boolean |
VB | object.Enabled = Boolean As Boolean |
C#.NET | bool object.Enabled = Boolean; |
VC++ | VARIANT_BOOL object->Enabled = Boolean; void object->PutEnabled(VARIANT_BOOL Boolean); |
C | HRESULT object->put_Enabled(VARIANT_BOOL Boolean); |
object
Boolean
Defines whether the control responds to user-generated events.
Boolean | Description |
---|---|
True | The control responds to user-generated events. |
False | The control is disabled and does not respond to user-generated events. It is painted in a "grayed" style. |
The Enabled property defines whether the control responds to user-generated events.
If the control is disabled, it uses the colors specified for the disabled state (usually containing the text "Grayed") and picture components defined using bitmaps are displayed in a grayed fashion.
AxSftButtonCheck.HoverStyle = SftButtonHoverStyleConstants.hoverstyleSftButtonExact
AxSftButtonCheck.Image1.Appearance = SftPictureImageConstants.sftImageCheckboxYes
AxSftButtonCheck.Text = "A SftButton control that looks like a check box with a caption"
AxSftButtonCheck.ShowFocus = False
End Sub
Private Sub check1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles check1.CheckedChanged
' enable/disable the control so the image changes
AxSftButton1.Enabled = Not check1.Checked
End Sub
Private Sub check2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles check2.CheckedChanged
' resize the control
If check2.Checked Then
#If VisualStudio2003AndEarlier Then
AxSftButton2.AutoSize = SftButtonAutoSizeConstants.autosizeSftButtonLeftCenter
SftButtonCheck.HoverStyle = hoverstyleSftButtonExact
SftButtonCheck.Image1.Appearance = sftImageCheckboxYes
SftButtonCheck.Text = "A SftButton control that looks like a check box with a caption"
SftButtonCheck.ShowFocus = False
End Sub
Private Sub Check1_Click()
' enable/disable the control so the image changes
SftButton1.Enabled = (Check1.Value = 0)
End Sub
Private Sub Check2_Click()
' resize the control
If Check2.Value Then
SftButton2.AutoSize = autosizeSftButtonLeftCenter
Else
axSftButtonCheck.Image1.Appearance = SftPictureImageConstants.sftImageCheckboxYes;
axSftButtonCheck.Text = "A SftButton control that looks like a check box with a caption";
axSftButtonCheck.ShowFocus = false;
}
private void check1_CheckedChanged(object sender, System.EventArgs e)
{
// enable/disable the control so the image changes
axSftButton1.Enabled = !check1.Checked;
}
private void check2_CheckedChanged(object sender, System.EventArgs e)
{
// resize the control
if (check2.Checked) {
#if VisualStudio2003AndEarlier
See Also SftButton Object | Object Hierarchy