Hello and welcome to our Knowledge Base. Our experts provide answers to the most frequently asked questions of our customers. Start your information search here to find your answer quickly and easily.
Please enter your query or select one of the above categories.
Knowledge Base ShellBrowser Delphi Components
|All entries (Page 1 / 5)|
Setting the property CopyMode to cmCopy should do this job.
Privileged processes do not receive Drag&Drop from non-privileged processes for security reasons. This could be the case if you start your IDE or your executable as admin.
Unfortunately it is not possible to mix OLE Drag&Drop and Delphi Drag&Drop, because they work completely different.
The ShellBrowser components can interact with all other OLE enabled applications like Explorer, Word etc. All ShellBrowser Components can interact which each other with the OLE Drag&Drop.
There are several measures you can take, depending on the components you are using:
To avoid, that a user manually opens a folder you have different options of interception:
- if the components share a TJamShellLink, you can use its OnNavigating event to control the opening of folders
- some controls have additional own events that serve the same purpose. See https://knowledgebase.jam-software.com/6774?language=EN
When configuring TJamExplorerBrowser to only include the FolderView, it looks much like the TJamShellList.
TJamExplorerBrowser wraps a Windows system component, and thus it will look exactly like Windows File Explorer.The TJamShellList on the other hand derives a VCL ListView control, that tries to resemble Windows File Explorer as much as possible. While it misses some aspects of this, it can on the other hand be customized more widely visually and functionally.
Assign the OnKeyDown event with this content:
if Key = vk_Return then Key := 0;
To prevent the automatic handling of a double click, simply add an OnDblClick event handler.
Or, you can use the OnBeforeShellCommand event and use the AllowExecute parameter to prevent the execution. The Command parameter when opening a file will be "default" or "open".
The thumbnails are generated through the same Windows API function that the Windows Explorer uses, and so the ShellBrowser components will show similar thumbnails like the Windows Explorer.
To provide thumbnails for a certain file format that Windows does not support out of the box, it is best to register a thumbnail provider in the system.
Another option is to use the OnThumbnailUpdated event of the TJamShellList control, which allows you to change the generated thumbnail.
TShellBrowser.SetThumbnailProvider() allows you to set one application-wide thumbnail provider that is called if the system does not supply one.
Each Windows Shell extension may define which columns will be displayed for its view.To add or remove specific columns, use the OnCreateColumns event in combination with SetColumnVisibility.
procedure TForm1.JamShellListCreateColumns(Sender: TObject);
with JamShellList do