Page 1 of 1

How to obtain opened file's path

Posted: Wed Nov 28, 2012 10:28 am
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 ?

Posted: Wed Nov 28, 2012 11:55 am
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)

Posted: Wed Nov 28, 2012 12:29 pm
by cedo
I didn't see there is the event OnDocumentFileChange in the class TRvActionSave.