Five sample projects are coming with the ShellBrowser component suite: Easy.dpr, GettingStarted.dpr, JAMSearch.dpr, JAMDragDrop.dpr and JAMExplorer.dpr.
You can download the sample applications in executable form here:
Sample Project: GettingStarted
Here's a first example on how to use the ShellBrowser components. We placed a JamShellTree on the left and a JamShellList on the right side. Both components' property 'Shelllink' is set to the same instance of a JamShellLink, a synchronizing component. The form was enhanced with a check for box enabling or disabling the 'Checkboxes' property of the components as well as forward/backward buttons.
A JamShellCombo mimics the dropdown menu of the Windows Explorer. Users can type into the combobox and use the autocomplete feature. A JamShellLink mediates events between different components. This time we placed a JamThumbnailImage component on the right side to display all documents known to the Windows operating system as a preview. The 'SpecialFolder' property of the JamShellList has been set to 'MyPictures', one of the available default locations.
The JamSystemShellView embeds the native Windows Explorer control: the application uses the exact same display as the Windows Explorer of the Windows version the software is running on. The JamSystemShellView has some advantages compared to the JamShellList - while the former provides the original background- context menu of the Explorer, the latter offers greater flexibility in some other aspects (e.g. the checkbox functionality used in the example of the first tab).
The JamShellChangeNotifier component notifies if changes occur on the filesystem. Add folders from the JamShellList to the JamFileList by dragging them with the mouse. The collection of items specifies where the JamShellChangeNotifier should listen for file or folder events. If the list is empty, the component notifies changes of the whole file system. On the left you can choose on what events the component should create a change event. In our example a textbox contains relevant information. It is bound to the 'Change' event of the component.
Sample Project: ExplorerBrowser
The ExplorerBrowser sample project shows you how to use the TJamExplorerBrowser component. The TJamExplorerBrowser control emulates an entire Windows Explorer. See how easily you can configure columns and display panes, apply filters, or set group and sorting options.
Sample Project: JAMExplorer
JAMExplorer is a project showing you how to build an Explorer-like application using the visual shell controls of the ShellBrowser component suite. On the left pane, you see the Windows TreeView, on the right pane the contents of the current folder are displayed. The toolbar contains some of the usual Explorer buttons like delete, properties, small/large icons. When a user right-clicks on an item, the context menu is displayed. All items can be renamed, Drag&Drop operations are supported. The only extra code written for this sample project were the handlers for the SpeedButtons in the toolbar of the window (usually one line for each button).
Sample Project: JAMSearch
JAMSearch is a project simulating the Windows file search. The user can search for file types as well as certain file dates or file sizes and decide whether subfolders should be included in the search or not. Clicking "Browse" to select the searched folder or drive opens an additional selection window.
Sample Project: Easy
ShellBrowser.ObjectName := Edit.Text; ShellBrowser.ShowContextMenu (ClientToScreen(Point(40,60)), nil);
Additionally it illustrates how to call the BrowseForFolder dialog of Windows 9x/NT using the TShellBrowser component.
Sample Project: JAMDragDrop
JAMDragDrop is a project that shows the handling of the TJamDropFiles and TJamDragFiles components and the possibilities the user has. It logs drag operations received or started by the connected controls.
ShellBrowser WPF Components
Integrate Windows Explorer features in your Windows Presentation Foundation apps.
We protect your privacy! The plug-in "Shariff" makes sure that your data will not be transferred to social networks unless you click one of the share buttons. Learn more.