dcsimg
Results 1 to 1 of 1
  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    1,916

    Post [VB6] ucShellTree: Full-featured Shell Tree UserControl

    ucShellTree v1.0

    About
    Designed for navigating the Windows Shell, like my recent Shell Browser Control, ucShellBrowse. This UserControl shows an Explorer-style TreeView of the entire shell, descended from the Desktop like normal. It's very similar to the INamespaceTreeControl in functionality and features, but a manual implementation allows a few extras that aren't available, like automatically handled tri-state checkboxes and open-to-path, and the ability to implement further customizations.

    Key Features
    • Displays complete Explorer-type tree with either Desktop or Computer as the root folder.
    • Tri-state checkboxes show partial selections when check mode is enabled
    • Supports drag/drop with modern drag images and drag-over-highlighting (including expanding on hover), based on my cDropTarget project. Can drop on all valid drop targets: folders, zip files, programs, shortcuts to them, etc.
    • Right-click shows the standard Explorer context menu for the clicked item
    • Automatically monitors for changes (item created, deleted, renamed) and updates the tree accordingly.
    • Option to show files as well
    • Can automatically expand to a given path. NOTE: OpenToPath/OpenToItem can only be used after loading; to open to a path on your Form_Load or Main() routine, use .InitialPath
    • InfoTips with several lines of details depending on file type are shown as ToolTips
    • Filter option can limit the type of files displayed (or even folders)
    • Can rename in place using LabelEdit
    • Can (optionally) treat .zip/.cab files as a folder
    • Optional additional root entry for 'Favorites' that shows the Links folder.
    • Browses the Network folder too and returns paths as \\Share\etcetc
    • Complete Unicode support


    Works with ucShellBrowse
    This project is similar to my recent ucShellBrowse control, and indeed if you prefer a TreeView to the dropdown for navigation, this control works well with it-- since it can be put into FilesOnly mode. There's a demo project of this setup in the \DemoSB folder (ucShellBrowse DL'd separate).


    Requirements
    -Windows Vista or newer
    -oleexp 4.42 or higher (not needed once compiled into OCX)

    Strongly recommended: Common Controls 6.0 Manifest (see here). The Demo projects have a manifest added for when they're compiled, but the IDE and your own projects will need their own. The control works without it, but some features are broken. The Checkboxes use transparency, they'll need to be replaced with ones that do not (otherwise a black box is around them). I haven't fully explored what other things might break without it.

    DemoSB: In the DemoSB folder, there's a project that shows the use of ucShellTree with my ucShellBrowse control. This requires ucShellBrowse to be present in the same root as ucShellTree (e.g. C:\vb6\ucShellBrowse and C:\vb6\ucShellBrowse).
    Attached Files Attached Files

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width