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
Returns the SftBoxItems object.
Get
| VB.NET | refItemsObj = object.Items As SftBoxItems |
| VB | Set refItemsObj = object.Items As SftBoxItems |
| C#.NET | SftBoxItems refItemsObj = object.Items; |
| VC++ | ISftBoxItems* refItemsObj = object->Items; ISftBoxItems* refItemsObj = object->GetItems(); |
| C | HRESULT object->get_Items(ISftBoxItems** refItemsObj); |
object
refItemsObj
Returns the SftBoxItems object.
The Items property returns the SftBoxItems object.
The default properties and behavior of all items can be updated using the returned SftBoxItems object.
A SftBoxItem object for a specific item can be retrieved using the Item property.
Application.Exit()
End Sub
Private Sub CopyImageFromCurrentItem()
Dim ItemIndex As Integer
Dim Img As SftPictureObject
ItemIndex = AxSftBox1.Items.Selection
If ItemIndex < 0 Then Exit Sub
' don't use images that are too large in the other areas
Img = AxSftBox1.get_Cell(ItemIndex, 0).Image
If Img.ActualHeight <= 20 And Img.ActualWidth <= 20 Then
AxSftBox1.RowColumnHeader.Image = Img
AxSftBox1.get_Header(1).Image = Img
Option Explicit
Dim SortDirection As Boolean
Private Sub CopyImageFromCurrentItem()
Dim ItemIndex As Integer
Dim Img As SftPictureObject
ItemIndex = SftBox1.Items.Selection
If ItemIndex < 0 Then Exit Sub
' don't use images that are too large in the other areas
Set Img = SftBox1.Cell(ItemIndex, 0).Image
If Img.ActualHeight <= 20 And Img.ActualWidth <= 20 Then
SftBox1.RowColumnHeader.Image = Img
SftBox1.Header(1).Image = Img
Application.Exit();
}
private void CopyImageFromCurrentItem()
{
int ItemIndex;
SftPictureObject Img;
ItemIndex = axSftBox1.Items.Selection;
if (ItemIndex < 0)
return;
// don't use images that are too large in the other areas
Img = axSftBox1.get_Cell(ItemIndex, 0).Image;
if (Img.ActualHeight <= 20 && Img.ActualWidth <= 20) {
axSftBox1.RowColumnHeader.Image = Img;
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
m_vBox = m_Box.GetControlUnknown();
ASSERT(m_vBox != NULL);
long ItemIndex = m_vBox->Items->Add("Supported Picture Types");
m_vBox->Cell[ItemIndex][1]->Text = _T("SftBox/OCX supports numerous image types, such as GDI+ images, bitmaps, icons, ImageLists and also offers numerous built-in images.");
// add GDI+ samples
ItemIndex = m_vBox->Items->Add(_T("GDI+ Images"));
m_vBox->Item[ItemIndex]->Level = 1;See Also SftBox Object | Object Hierarchy
