trichview.support
Re: Downloaded image file name |
Author |
Message |
Sergey Tkachenko |
Posted: 01/11/2005 14:43:49 This event does not allow modifying item text. But there is a special place where image file name can be stored - rvespImageFileName property (see the help file on TRVExtraItemStrProperty) This property can be filled automatically when importing HTML or RTF. For HTML: it's stored automatically (if the newest version of RvHTMLImporter is used) For RTF: set RichView.RTFReadProperties.StoreImagesFileNames to True (one of the newest version of TRichView is required). How to assign it when inserting picture: rveEditor.TopLevelEditor.BeginUndoGroup(rvutInsert); rveEditor.TopLevelEditor.SetUndoGroupMode(True); if rveEditor.InsertPicture('', grCheckType, rvvaBaseLine) then rveEditor.SetCurrentItemExtraStrProperty(rvespImageFileName, dlgOpenPicture.FileName, True); rveEditor.TopLevelEditor.SetUndoGroupMode(False); > rveEditor.InsertPicture('[PIC]' + dlgOpenPicture.FileName, grCheckType, > rvvaBaseLine); > rveEditor.InsertPicture('[PIC]' + dlgOpenPicture.FileName, grCheckType, > rvvaBaseLine); > > When inserting a picture, I will format the image name with some header. > But the DoImportPicture does not provide any parameter for me to customize > the file name. > > I do not handle DoImportPicture event myself because it is already handled > by RichView action. So, is there anyway I can add the file name to the > downloaded image? > > |
Powered by ABC Amber Outlook Express Converter