| | 1 | = Question: How do I create a dot net overlay options (given example doesnt work) = |
| | 2 | |
| | 3 | Hey, |
| | 4 | |
| | 5 | I am trying to create an overlay options page/panel in C# .net 2.0 (VS2005) for Falcon View 4.1. |
| | 6 | |
| | 7 | I 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 | |
| | 11 | OnMidified 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 | |
| | 13 | Does anyone have any ideas? |
| | 14 | |
| | 15 | Cheers, |
| | 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 | |
| | 29 | The 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 | |
| | 31 | Developers 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 | |
| | 33 | If 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 | |
| | 35 | See HowToCreateAnOptionOverlay for a code sample. |
| | 36 | |