Knowledge Base

ShellBrowser Delphi Components

Hallo und herzlich Willkommen in unserer Wissensdatenbank.
Unsere Fachexperten liefern hier Antworten auf die häufigsten Fragen unserer Kunden.
Beginnen Sie Ihre Informationssuche hier, um schnell und einfach auch Ihre Antwort zu finden.
Geben Sie bitte einen Suchbegriff ein oder wählen Sie eine der obenstehenden Kategorien aus.

Alle Einträge (Seite 2 / 5)

Die folgenden Inhalte sind leider nicht auf Deutsch verfügbar.

How can I check if a file is currently in the clipboard?

Just use this line of code:

How can I exclude a drive from the list?

You can use the OnAddItem event to exclude e.g. the floppy drive like this: CanAdd := not (GetDriveType(PChar(JamShellList.GetFullPath(Item))) in [DRIVE_REMOVABLE]); This will exclude the floppy drive. It is also possible to exclude other drives like the CD-ROM (DRIVE_CDROM).

When I read the file name of the currently selected file in a JamShellList from the Selected.Caption property, the file extension is missing if the user has set the according option in the Windows Explorer options. How can I get the full file name?

You can use the SelectedFiles property to get a list of all currently selected file including their extension. The path of the currently displayed directory can be read from the Path property.

How can I expand nodes like SF_FAVORITES or SF_LIBRARIES in the JamShellTree?

To expand these nodes, you may use code like this: procedure TMainForm.FormShow(Sender: TObject);
    i := 0;
    while (i < ShellTree.Items.Count) do
        if (ShellTree.Items[i].AbsoluteItemIdList.SpecialFolder in [SF_FAVORITES, SF_LIBRARIES]) then

How can I exclude a drive from the JamShellTree?

You can use the OnAddFolder event with a statement like this:
CanAdd := not (GetDriveType(PChar(Path)) in [DRIVE_REMOVABLE]); This will exclude the floppy drive. It is also possible to exclude other drives like the CD-ROM (DRIVE_CDROM).

Why do the thumbnails have an ugly black background?

The thumbnail images show a black background if your application does not include a proper XP manifest. Windows then loads the old Windows 2000 version of ComCtl32.DLL which cannot deal properly with alpha channels.
To solve this please include the unit "XpMan" somewhere in your project or set "Project > Options > Application > Runtime Themes" to the value "Enable runtime themes".

How can I find out if an item in the TJamShellList is a directory?

You can use a statement like this:

How can I prevent a file from being opened in the TJamShellList?

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.

How do I get the check status of an item?


How do I check all items of the currently selected path in a JamShellList?

use the following line: JamShellLink.SelectionList.Add(JamShellList.Path);

How do I reset all checkboxes to an unchecked state?

use the following command:JamShellLink.SelectionList.Clear();

How can I determine in a TJamShellList the full path of a file including its extension, if the user has turned off extensions in his Windows Explorer settings?

You can use TJamShellListItem.FullPath, or JamShellList.SelectedFiles, which will return a full file name that always includes the extension.