And for part two!
I've created an enumeration with flags (i.e. multiple can be selected) to hold information. I've created a class that derives from UITypeEditor (EditStyle.Modal), as well as a simple Window form with check boxes to allow the values to be selected. In DSL, when I set the data type for the domain property as Int32, everything works fine except that the numbers appear in the property grid. When I switch the type to the enumeration, it switches the style to DropDownList (even with the EditStyle as Modal) and won't let me select multiples.
Ideally I'd just like the ToString() of the enumeration value to display in the property grid. Thoughts?
-B Tucker Neumont University
| | SleipOdin | Hi SleipOdin, Yes, when the data type is enum, the custom UITypeEditor won't show. I am checking to see whether there is way to override this behavior. If I find out anything, I will let you know.
And the problem you mentioned, that the grid won't let you select multiple items even with IsFlags=True, is fixed and should be available in the coming release.
Regards, Steven Tung
DSL Tools - SDE Intern | | Steven Tung | Steven- Thank you very much for looking into this. For the second part of your response, does it still display as a DropDownList? How will the user select multiple enumerations? Will they get feedback as to their decision?
-B Tucker
| | SleipOdin | Hi SleipOdin,
it will be a drop down list with checkboxes next to the enum's names, so user can "tick" the checkboxes to select mulitple items.
I hope I have answered your question.
Regards, Steven Tung
DSL Tools - SDE Intern | | Steven Tung |
|