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 image object using a built-in, special purpose image.
Get
VB.NET | Style = object.Appearance As SftPictureImageConstants |
VB | Style = object.Appearance As SftPictureImageConstants |
C#.NET | SftPictureImageConstants Style = object.Appearance; |
VC++ | enum SftPictureImageConstants Style = object->Appearance; enum SftPictureImageConstants Style = object->GetAppearance(); |
C | HRESULT object->get_Appearance(enum SftPictureImageConstants* Style); |
Put
VB.NET | object.Appearance = Style As SftPictureImageConstants |
VB | object.Appearance = Style As SftPictureImageConstants |
C#.NET | SftPictureImageConstants object.Appearance = Style; |
VC++ | enum SftPictureImageConstants object->Appearance = Style; void object->PutAppearance(enum SftPictureImageConstants Style); |
C | HRESULT object->put_Appearance(enum SftPictureImageConstants Style); |
object
Style
Defines the image object using a built-in, special purpose image.
Name | Value | Description |
---|---|---|
sftImageNone | -1 | None |
sftImageCheckboxNo | 0 | Checkbox - No |
sftImageCheckboxYes | 1 | Checkbox - Yes |
sftImageCheckboxUnknown | 2 | Checkbox - Unknown |
sftImageCheckboxNoDisabled | 3 | Checkbox - No, Disabled |
sftImageCheckboxYesDisabled | 4 | Checkbox - Yes, Disabled |
sftImageCheckboxUnknownDisabled | 5 | Checkbox - Unknown, Disabled |
sftImageRadioButtonNo | 6 | RadioButton - No |
sftImageRadioButtonYes | 7 | RadioButton - Yes |
sftImageRadioButtonNoDisabled | 8 | RadioButton - No, Disabled |
sftImageRadioButtonYesDisabled | 9 | RadioButton - Yes, Disabled |
sftImageUp | 10 | Up |
sftImageUpDisabled | 11 | Up, Disabled |
sftImageDown | 12 | Down |
sftImageDownDisabled | 13 | Down, Disabled |
sftImageSortAsc | 14 | Sort Ascending |
sftImageSortAscDisabled | 15 | Sort Ascending, Disabled |
sftImageSortDesc | 16 | Sort Descending |
sftImageSortDescDisabled | 17 | Sort Descending, Disabled |
The Appearance property defines the image object using a built-in, special purpose image.
The SftPictureObject.Type property is set to sftTypeBuiltin.
The SftPictureObject.Height and SftPictureObject.Width properties should be used to define the requested image size. The SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the image dimensions.
End Sub Private Sub CloseButton_ClickEvent(ByVal sender As Object, ByVal e As System.EventArgs) Handles CloseButton.ClickEvent Application.Exit() End Sub Private Sub AxSftButtonCheck_ClickEvent(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxSftButtonCheck.ClickEvent ' toggle the check box If AxSftButtonCheck.Image1.Appearance = SftPictureImageConstants.sftImageCheckboxYes Then AxSftButtonCheck.Image1.Appearance = SftPictureImageConstants.sftImageCheckboxNo Else AxSftButtonCheck.Image1.Appearance = SftPictureImageConstants.sftImageCheckboxYes End If End Sub Private Sub AxSftButtonCheck_DblClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxSftButtonCheck.DblClick
' initialize a SftButton control to look like a check box SftButtonCheck.BorderAlways = False SftButtonCheck.AutoSize = autosizeSftButtonLeftCenter SftButtonCheck.Bounce = bounceSftButtonNo SftButtonCheck.ButtonStyle = styleSftButtonNone SftButtonCheck.ClickStyle = clickstyleSftButtonPictures 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 void CloseButton_ClickEvent(object sender, System.EventArgs e) { Application.Exit(); } private void axSftButtonCheck_ClickEvent(object sender, System.EventArgs e) { // toggle the check box if (axSftButtonCheck.Image1.Appearance == SftPictureImageConstants.sftImageCheckboxYes) axSftButtonCheck.Image1.Appearance = SftPictureImageConstants.sftImageCheckboxNo; else axSftButtonCheck.Image1.Appearance = SftPictureImageConstants.sftImageCheckboxYes; } private void axSftButtonCheck_DblClick(object sender, System.EventArgs e) {
// initialize a SftButton control to look like a check box m_vButtonCheck->BorderAlways = VARIANT_FALSE; m_vButtonCheck->AutoSize = autosizeSftButtonLeftCenter; m_vButtonCheck->Bounce = bounceSftButtonNo; m_vButtonCheck->ButtonStyle = styleSftButtonNone; m_vButtonCheck->ClickStyle = clickstyleSftButtonPictures; m_vButtonCheck->HoverStyle = hoverstyleSftButtonExact; m_vButtonCheck->Image1->Appearance = sftImageCheckboxYes; m_vButtonCheck->Text = "A SftButton control that looks like a check box with a caption"; m_vButtonCheck->ShowFocus = VARIANT_FALSE; return TRUE; // return TRUE unless you set the focus to a control } // If you add a minimize button to your dialog, you will need the code below // to draw the icon. For MFC applications using the document/view model,
See Also SftPictureObject Object | Object Hierarchy