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('')