PlugIns? (#2) - Static overlay with editor support? (#512) - Message List

Static overlay with editor support?

I am using the FalconView C# Plug-in Wizard to create a static overlay with editor support. I do not want the overlay to open/saved from/to a file because the plugin will save to a Web service instead of local file. However, I found that no matter whether I select "static" or "file" overlay, as long as I choose "editor support", the generated plugins are exactly the same (except guids) and always allow file open/save. (In other words, selecting "editor support" always makes the overlay a "file" overlay, is that correct Wizard behavior?). I suppose if I choose "static" overlay and "editor support", the generated overlay should do exactly what I want - allowing editor and no file open/save. But the Wizard is not doing this. Could you shed some light on how I can achieve what I want? Thanks.

  • Message #1141

    It does sound like a bug in the wizard; someone more knowledgeable in the behavior of the wizard can answer for sure.

    To achieve what you want, change your class so that you are no longer inheriting from the IFvOverlayPersistence interface.

    • Message #1144

      But if I do no inherit from IFvOverlayPersisence, I get "ERROR: .\OverlayCOM.cpp line 1139. A file overlay must implement the IFvOverlayPersistence interface".

      I wonder what makes it think this is a "file overlay", just because it has editor support?

      • Message #1145

        Ah. You will also need to modify the FvOverlayTypes?.xml file and get rid of the FileOverlayTypeDescriptor? tag from your overlay type. My apologies for missing that detail.

        • Message #1149

          That works. Thank you!

Subscriptions