We help IT Professionals succeed at work.

Using TShellListView to open files

cedrickgrommet
on
1,136 Views
Last Modified: 2008-02-01
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
Comment
Watch Question

CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.