trichview.com

trichview.support




Error when OnRVFControlNeeded set ctrl to nil


Return to index


Author

Message

Christian Kirchhoff

Posted: 02/07/2003 20:41:25


I use a descendant of TImage as a special control in TRichViewEditor. Now

I've set SaveControlsBody in the RVFOptions to false. I put all necessary

information about the image in the PChar-Tag, e.g. the full file name of

the file.

When opening a RVF file, the OnRVFControlNeeded is called for every control

in the RVF file.

There I fetch the filename out of the PChar-Tag and check whether the file

is still existing. If so, I can create the control and load the image into

it. If the file does not exist, I show a message that the linked file is

missing. Then I would like to set ctrl to nil, telling the RichViewEditor

that the control should not be placed in the editor again. But when I do

that, I receive an error.

How can I tell the RichViewEditor to "drop" a control?


Christian Kirchhoff





Powered by ABC Amber Outlook Express Converter