How to obtain opened file's path

General TRichView support forum. Please post your questions here
Post Reply
cedo
Posts: 10
Joined: Wed Nov 28, 2012 10:16 am

How to obtain opened file's path

Post by cedo »

Suppose I have standard menu, list action and standard action Open linked to TRichViewEdit contol. I opened a file by menu action Open and i would like to know how i can get path to the file from TRichViewEdit control ?
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

rvActionSave1.GetDoc(RichViewEdit1) returns information about the document opened in RichViewEdit1. It has properties:
- FileName
- FileFormat
- Defined (if False, this is a new document with a temporal file name, not saved yet)
cedo
Posts: 10
Joined: Wed Nov 28, 2012 10:16 am

Post by cedo »

I didn't see there is the event OnDocumentFileChange in the class TRvActionSave.
Post Reply