Changes between Initial Version and Version 1 of HowToCreateADotNetOverlayOptions


Ignore:
Timestamp:
02/09/09 10:46:12 (4 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToCreateADotNetOverlayOptions

    v1 v1  
     1=  Question: How do I create a dot net overlay options (given example doesnt work) = 
     2 
     3Hey, 
     4 
     5I am trying to create an overlay options page/panel in C# .net 2.0 (VS2005) for Falcon View 4.1. 
     6 
     7I have looked at/used the example given here [wiki:HowToCreateAnOptionOverlay] and it shows up fine in the options window but when I try and call OnModified() with: 
     8 
     9'''if (OnModified ! = null) OnModified();''' 
     10 
     11OnMidified is always null, indicating to me that no one has registered for my events. I can't find any way to get this to work. 
     12 
     13Does anyone have any ideas? 
     14 
     15Cheers, 
     16 
     17=  Environment = 
     18 
     19|| !FalconView Version: || FalconView 4.1 || 
     20|| Interface: || OverlayOptions || 
     21|| Language: || C# VS 2005 %EDITCELL{checkbox, 7, C++, C# VS 2003,C# VS 2005, Visual Basic, Visual Basic.Net, Java, C++.Net}% || 
     22 
     23-- Main.DamienLong - 18 Jun 2008 
     24 
     25=  Answer = 
     26 
     27-- Main.DanielLonghurst - 24 Jun 2008 
     28 
     29The problem is because of the way the preference control was created.  ActiveX events will not be connected on Windows Form controls when used as ActiveX controls. 
     30 
     31Developers using .Net should create a "Control" instead of a "Windows Form" when creating the ActiveX preference control for FalconView.  Simply put, create a single container control which contains all prefrences for your overlay.   
     32 
     33If you are an editor overlay, also create a simple form to show the control in a dialog for the user.  Your overlay will display this form when the user opens preferences from the editor toolbar. 
     34 
     35See HowToCreateAnOptionOverlay for a code sample. 
     36