trichview.com

trichview.support




Re: Error when OnRVFControlNeeded set ctrl to nil


Return to index


Author

Message

Sergey Tkachenko

Posted: 02/07/2003 23:56:31


Yes, you cannot omit control in OnRVFControlNeeded.

May be instead of deleting controls it would be better to create a control

and show its erroneous state?


>

> 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