2 Attachment(s)
Re: [VB6] Shell Controls OCX
Demo for OCX Version
Here's a brand new demo that references the OCX version. It's set up as a file processor: Configured to display a bare minimum, to gather a list of files, list them by their name, but store them by their full path to process them.
The CommonControls 6.0 Default Resource that's included with the OCX is demo'd as well.
Attachment 181104
The TreeView is using all default settings except PlayNavigationSound = False, since the ShellBrowser will play that sound.
To configure the ShellBrowser to get the above, here's all the Properties that have been changed from their default:
AutosizeColumns = True - The ColumnHeader is invisible but there. This keeps its width to the control width with no horz scroll.
ControlType = SBCTL_FilesOnly - Only the ListView. No ComboBox, Control Box, Search Box, or NavButtons (but they will appear on View menu).
DefaultColumns = (blank) - This leaves only the Name column there by default.
DetailsPane = False - No room for it.
EnableLayout = False - Keep the Layout submenu off the View Menu (right-click on background).
EnableNewFolder = False - Can't create a new folder when FilesOnly = True. A future version will hide the New Folder item automatically.
EnableSearch = False - Searching should be unavailable.
FilesOnly = True - The TreeView is right next to the control, no need to duplicate folders.
HideColumnHeader = True - We're using Details View to keep files in a single verticle column, not really show Details View.
LockColumns = SBCL_LockNoUser - Otherwise new folders would load new columns.
LockView = True - No room for other views, keep them off the View background menu.
MultiSelect = False - Right now our demo isn't handling multi files selected.
And that's it, now you have a plain, basic file display despite the complexity of the control! :wave:
Other options to keep in mind: If you right-click the background, the View menu still has some options enabled: The Bookmarks submenu is present, Group By is there but can only group by name. The rest should be fine; Back/Forward, Sort Direction, Copy Path, Select All, Refresh, and Properties; Paste works fine... pasted folders will be invisible but there, pasted files are added to the view.
Re: [VB6] Shell Controls OCX
Known Issues
The same Known Issues from the project pages apply, in addition to the follow unique to the OCX.
- When you first create a ShellBrowse control, the ListView header displays a black system font instead of the control font. You do not need to do anything about this, the correct font will be displayed when run and then subsequently in design mode as well. It's unknown why this happens.
- Other fonts may also be defaults instead of what they were set to by defaulting to the font of the control parent, just run or reload the form to refresh them, again no need to change.
Re: [VB6] Shell Controls OCX
very good work.
This issue went unnoticed for me. I have almost no time to go into other subforums XD
better use the two controls together
I have the same problems oleexp 4.8 and codebank 4.8
a greeting
Re: [VB6] Shell Controls OCX
fafalone,
I have your latest version v11.0.2.7 dated 1-25-2022. I can't get it to register 64-bit Windows 10). I have unregistered the older version and then copied the .ocx to SysWOW64 and tried to register it. No joy. I have copied it over the older .ocx version and that generates an error in VB6 when trying to use your controls. Have you gotten this version to load on your PC? Also, since UCShellTree is now at version 11.1 can yo update the .ocx to account for the latest version? Thanks.
Re: [VB6] Shell Controls OCX
Recommended Version: 12.2 twinBASIC Version
Apparently there's some issues with the last VB6 version compiled to OCX, so if that's how you want to use these controls, I now recommend using the latest version from the twinBASIC branch. There's been *major* compatibility improvements to ActiveX control builds over the past month, and the latest version is now working very well in VB6.
You can download it from the project repository: https://github.com/fafalone/ShellControls
The 'Releases' section has binary builds of the OCX (a 32bit version for VB6 and 32bit tB/Office/.NET, and a 64bit version for tB/Office/.NET 64bit).
Or you can build from source with the file ShellControlsTB.twinproj. Open this in twinBASIC (the free tier will work) run as admin, make sure the IDE is in 'win32' mode (combobox in the toolbar) to build for VB6, then File->Build.
Re: [VB6] Shell Controls OCX
hi. just testing with the shellTree and if i select a Nas drive that has approx 2400 folders, it hangs the app till it reads them all in and then after about 3 minutes it responds again and shows all the folders.
It it meant to take this long.
Just did a text with ucShellTree as a control, Creat a New Project, and Form1. add the usercontrol to the form and run.
select the Nas folder that has 2400 folders and it hangs.
pls advise