I'd like to know if there is a way to add a custom parameter for my custom bartype that can be set by the user in the DataSeries Window.
I know that we can remove / rename Properties, but is there a way to actually add one ?
Because I need a boolean, and of course I can rename another property and use the integer value as a boolean, but this is a bit ugly.
Some threads on stackoverflow forum show how to create a CustomPropertyDescriptor derived from PropertyDescriptor. Then I was able to add this CustomPropertyDescriptor to the PropertyDescriptorCollection and I can see now the boolean checkbox.
Except that when I change the boolean value, the change is not taken into account in the code, and it keeps the default value.
Inside the State == State.Configure section, I've added the following piece of code
if (Properties.Find("CustomMode", true) == null) { Properties.Add(new CustomModePropertyDescriptor(false)); }
If someone knows how to do that...
Note I've asked on the NT8 forum, but if you have a custom bartype with custom parameters on NT7, I'm interested too.
Thanks in advance,
-----------------------------------------------
Christophe - Ninja-Addons.com
CEO Azur Investment Technologies "AzurITEC" sas
http://www.ninja-addons.com - http://www.neat-markets.com
3rd Party Add-On Vendor
Comment