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 file/folder's info tip text.
Get
VB.NET | TipString = object.InfoTip As String |
VB | TipString = object.InfoTip As String |
C#.NET | string TipString = object.InfoTip; |
VC++ | _bstr_t TipString = object->InfoTip; _bstr_t TipString = object->GetInfoTip(); |
C | HRESULT object->get_InfoTip(BSTR* TipString); |
object
A SftDirectoryFolder object.
TipString
Returns the file/folder's info tip text.
The InfoTip property returns the file/folder's info tip text.
The info tip text is normally displayed by Windows Explorer and is maintained by the Windows Shell or Shell extensions. The text usually provides information about the file/folder and is suitable for use in a status bar (for example).
Private Sub AxSftDirectory1_SelectionFinal(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxSftDirectory1.SelectionFinal If Not AxSftDirectory1.CurrentFolder Is Nothing Then AxSftDirectory1.CurrentFolder.GetImage() LabelInfoTip.Text = AxSftDirectory1.CurrentFolder.InfoTip Else PictureBox1.Image = Nothing LabelInfoTip.Text = "" End If End Sub Private Sub AxSftDirectory1_FolderImageReady(ByVal sender As Object, ByVal e As AxSftDirectoryLib30._ISftDirectoryEvents_FolderImageReadyEvent) Handles AxSftDirectory1.FolderImageReady PictureBox1.Image = OLECvt.ToImage(e.picture) End Sub Private Sub CloseButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CloseButton.Click Application.Exit()
Private Sub CloseButton_Click() Unload Form1 End Sub Private Sub SftDirectory1_SelectionFinal() If Not SftDirectory1.CurrentFolder Is Nothing Then SftDirectory1.CurrentFolder.GetImage InfoTipLabel.Caption = SftDirectory1.CurrentFolder.InfoTip Else Set Picture1.Picture = Nothing InfoTipLabel.Caption = "" End If End Sub Private Sub SftDirectory1_FolderImageReady(ByVal Folder As SftDirectoryLib30.ISftDirectoryFolder, ByVal Picture As stdole.IPictureDisp) Set Picture1.Picture = Picture
private void axSftDirectory1_SelectionFinal(object sender, System.EventArgs e) { if (axSftDirectory1.CurrentFolder != null) { axSftDirectory1.CurrentFolder.GetImage(); labelInfoTip.Text = axSftDirectory1.CurrentFolder.InfoTip; } else { pictureBox1.Image = null; labelInfoTip.Text = ""; } } private void axSftDirectory1_FolderImageReady(object sender, AxSftDirectoryLib30._ISftDirectoryEvents_FolderImageReadyEvent e) { pictureBox1.Image = OLECvt.ToImage(e.picture); } private void closeButton_Click(object sender, System.EventArgs e) { Application.Exit();
} void CFullTreeViewDlg::OnSelectionFinal_SftDirectory1() { ISftDirectoryPtr vDir1 = m_Dir1.GetControlUnknown(); ISftDirectoryFolderPtr currFolder = vDir1->CurrentFolder; if (currFolder != NULL) { currFolder->GetImage(); m_InfoTipCtrl.SetWindowText(currFolder->InfoTip); } else { m_InfoTipCtrl.SetWindowText(_T("")); } } void CFullTreeViewDlg::OnFolderImageReady_SftDirectory1(LPDISPATCH Folder, LPDISPATCH Picture) {
See Also SftDirectoryFolder Object | Object Hierarchy