Link to home
Start Free TrialLog in
Avatar of cedrickgrommet
cedrickgrommet

asked on

Using TShellListView to open files

Hi,

I am writing a simple text editor that has the open source component, synedit and a ShellListView for a file explorer. I have the code

  synEditor.Lines.LoadFromFile(ShellListView.SelectedFolder.PathName);
 
to open the file and this displays the file in my synedit component but it also performs the default open in windows. eg if i double click a pas file through the ShellListView component it opens the pas in delphi and in the text editor i wrote.

Is there a way that I can stop this from opening the file via explorer. Alternatively if there isnt a way is there a component that will let me have a file explorer to open files in my editor. I would prefer to keep using the ShellListView however.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Ferruccio Accalai
Ferruccio Accalai
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial