FAQ & Knowledge Base

Herzlich Willkommen in unserer Wissensdatenbank. Nutzen Sie die Suchfunktion oder durchstöbern Sie unsere Kategorien, um Antworten auf Ihre Fragen zu erhalten.

Kategorien: ShellBrowser Delphi Components | Alle Kategorien anzeigen

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

Prevent File Open in TJamExplorerBrowser

Frage / Problem

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

Antwort / Lösung

To block opening in general, simply implement an empty event handler for the OnDefaultAction event of the TJamExplorerBrowser control that contains only the code "exit;".

You may also do this conditionally:

  if JamExplorerBrowser1.SelectedFiles[0].EndsWith('.log', True) then
    exit
  else
    JamExplorerBrowser1.InvokeCommand('')