Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: AndreasBaur on May 25, 2012, 04:59:24 pm
-
Hi everyone,
is there a way to create entries in the options/settings menu of EA for your AddIn.
E.g.: I want to turn off/on my AddIn and therefor it would be great to have such an option in the options/settings menu of EA.
If this is not possible, is there a nice way to create an own settings-dialog with checkboxes etc. instead of disabling and enabling the functions with a separate menu entry for each.
Thanks in advance
Andy
-
Andy,
I would just add an entry "Options" to your add-in menu.
Then let the user choose the options in your own dialog.
Depending on your needs you could save the settings somewhere in the registry or in a config file.
I'm currently working on something like that for the EA Navigator.
Geert
-
Thanks Geert,
that helps me.
Since i'm not a professional in c# - addin writing for the EA, could you give me tips on how to design such an dialog? Just the basics for creating the dialog itself and how i add elements to it.
And could you tell me how to save the settings in the registry or the config file, allthough i think i know how to handle the saving in the file i'm not sure about that.
Greetings Andy
-
How to design a C# dialog?
I think in most IDE's its just a matter of drag-and-drop. A toddler could do that. :D
Regarding the config file, look here:http:// http://msdn.microsoft.com/en-us/library/1xtk877y.aspx or google ".net config file"
Geert