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
A SftPictureObject 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.
Else AxSftTree1.RowColumnHeader.Image.Clear() AxSftTree1.get_Header(1).Image.Clear() End If End Sub Private Sub ToggleImage(ByVal Img As SftPictureObject) Select Case Img.Appearance Case SftPictureImageConstants.sftImageCheckboxNo Img.Appearance = SftPictureImageConstants.sftImageCheckboxYes Case SftPictureImageConstants.sftImageCheckboxYes Img.Appearance = SftPictureImageConstants.sftImageCheckboxNo Case SftPictureImageConstants.sftImageCheckboxUnknown Img.Appearance = SftPictureImageConstants.sftImageCheckboxNo Case SftPictureImageConstants.sftImageCheckboxNoDisabled
Else SftTree1.RowColumnHeader.Image.Clear SftTree1.Header(1).Image.Clear End If End Sub Private Sub ToggleImage(Img As SftPictureObject) Select Case Img.Appearance Case sftImageCheckboxNo Img.Appearance = sftImageCheckboxYes Case sftImageCheckboxYes Img.Appearance = sftImageCheckboxNo Case sftImageCheckboxUnknown Img.Appearance = sftImageCheckboxNo Case sftImageCheckboxNoDisabled
} else { axSftTree1.RowColumnHeader.Image.Clear(); axSftTree1.get_Header(1).Image.Clear(); } } private void ToggleImage(SftPictureObject Img) { switch (Img.Appearance) { case SftPictureImageConstants.sftImageCheckboxNo: Img.Appearance = SftTreeLib75.SftPictureImageConstants.sftImageCheckboxYes; break; case SftPictureImageConstants.sftImageCheckboxYes: Img.Appearance = SftTreeLib75.SftPictureImageConstants.sftImageCheckboxNo; break; case SftPictureImageConstants.sftImageCheckboxUnknown:
} void CPicturesDlg::AddBuiltinImage(LPCTSTR lpszName, SftPictureImageConstants Appearance, long Width, long Height) { long ItemIndex = m_vTree->Items->Add(lpszName); m_vTree->Item[ItemIndex]->Level = 2; ISftTreeCellPtr C = m_vTree->Cell[ItemIndex][0]; C->Image->Appearance = Appearance; C->Image->Width = Width; C->Image->Height = Height; C->ImageHAlign = halignSftTreeRight; PropagateImage(ItemIndex, C->Image); } void CPicturesDlg::CopyImageFromCurrentItem()
See Also SftPictureObject Object | Object Hierarchy