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 cell's text.
Get
VB.NET | String = object.Text As String |
VB | String = object.Text As String |
C#.NET | string String = object.Text; |
VC++ | _bstr_t String = object->Text; _bstr_t String = object->GetText(); |
C | HRESULT object->get_Text(BSTR* String); |
Put
VB.NET | object.Text = String As String |
VB | object.Text = String As String |
C#.NET | string object.Text = String; |
VC++ | _bstr_t object->Text = String; void object->PutText(_bstr_t String); |
C | HRESULT object->put_Text(BSTR String); |
object
A SftTreeCell object.
String
Defines the cell's text.
The Text property defines the cell's text.
The Items.Add, Items.Insert and Items.InsertAfter methods add new items. The text specified when adding new items always defines the cell text for the first or only column (column 0).
The cell text may contain new-line characters (CR-LF) if multi-line cell text is enabled (see Items.Lines and Column.CellMultiline).
If the cell text is empty, the cell in the preceding column may merge into the empty cell, based on the Column.MergeInto property settings.
The default cell text alignment for a column is defined using the Column.CellHAlign and Column.CellVAlign properties. A cell can override the default using the Cell.TextHAlign and Cell.TextVAlign properties.
Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim path As String = System.IO.Path.GetDirectoryName(System.IO.Path.GetDirectoryName(System.IO.Path.GetDirectoryName(Application.ExecutablePath))) ' Flash AxShockwaveFlash1.Movie = path + "\\header.swf" AxSftTree1.get_Item(3).Cell(1).AttachContentWindow(AxShockwaveFlash1.Handle, SftTreeContentWindowStyleConstants.contentWindowSftTreeKeepSize) AxSftTree1.get_Item(3).Cell(1).Text = "" ' Windows Media Player AxWindowsMediaPlayer1.URL = path + "\\intermission.wmv" AxSftTree1.get_Item(4).Cell(1).AttachContentWindow(AxWindowsMediaPlayer1.Handle, SftTreeContentWindowStyleConstants.contentWindowSftTreeKeepSize) AxSftTree1.get_Item(4).Cell(1).Text = "" ' Web Browser webBrowser1.Navigate("http://www.softelvdm.com")
Private Sub Form_Load() ' Flash ' Because some controls don't have a window handle property (like hWnd), ' we place the control inside a picturebox. A picturebox has a window ' handle property hWnd. ShockwaveFlash1.Movie = App.Path & "\header.swf" SftTree1.Item(3).Cell(1).AttachContentWindow FlashPictureBox.hWnd, contentWindowSftTreeKeepSize SftTree1.Item(3).Cell(1).Text = "" ' Windows Media Player WindowsMediaPlayer1.URL = App.Path & "\intermission.wmv" SftTree1.Item(4).Cell(1).AttachContentWindow WMPPictureBox.hWnd, contentWindowSftTreeKeepSize SftTree1.Item(4).Cell(1).Text = "" ' Web Browser
} private void Form1_Load(object sender, EventArgs e) { String path = System.IO.Path.GetDirectoryName(System.IO.Path.GetDirectoryName(System.IO.Path.GetDirectoryName(Application.ExecutablePath))); // Flash axShockwaveFlash1.Movie = path + "\\header.swf"; axSftTree1.get_Item(3).get_Cell(1).AttachContentWindow((long) axShockwaveFlash1.Handle, SftTreeContentWindowStyleConstants.contentWindowSftTreeKeepSize); axSftTree1.get_Item(3).get_Cell(1).Text = ""; // Windows Media Player axWindowsMediaPlayer1.URL = path + "\\intermission.wmv"; axSftTree1.get_Item(4).get_Cell(1).AttachContentWindow((long) axWindowsMediaPlayer1.Handle, SftTreeContentWindowStyleConstants.contentWindowSftTreeKeepSize); axSftTree1.get_Item(4).get_Cell(1).Text = ""; // Web Browser
m_vTree = m_Tree.GetControlUnknown(); ASSERT(m_vTree != NULL); // Flash // Create the dialog containing the Flash control if (!m_FlashDialog.Create(IDD_FLASH_DIALOG, &m_Tree) || !m_FlashDialog.HaveFlash()) { m_vTree->Item[3]->Cell[1]->Text = _T("Flash ActiveX control could not be instantiated - maybe Flash Player is not installed\n\n") _T("Flash Player is available at www.adobe.com."); } else { m_vTree->Item[3]->Cell[1]->Text = _T(""); m_vTree->Item[3]->Cell[1]->AttachContentWindow((int) m_FlashDialog.m_hWnd, contentWindowSftTreeKeepSize); } // Windows Media Player
See Also SftTreeCell Object | Object Hierarchy