I'm working on project where users will place multiple color coded lists which then will be populated with multiple color coded list items. Both the list and list items will be pre-defined in a stencil. My idea was to have a simple stencil with one list shape and one list item shape that users would drop and use a context menu to select the "type" of list or "type" of shape they wanted to use which would then color code it accordingly.
I thought it would be easier to add the action menu items programmatically rather than hard coding them in each shape. This way, I can easily maintain an alphabetically sorted and sub-menu'd list rather than tying to do it in the ShapeSheet since it will be updated often. The Action section of the ShapeSheet would be populated when the shape was dropped or when a user selects the "update" context menu command. I think in both methods (drop, update), I would delete the entire actions list then add the list again to ensure it is up-to date as I don't know of any other way to easily check that the structure and each row matches what I want it to be.
I have about 20-30 items that will be added to the context menu but I'm not sure how to add all these items. Can the row be added with a single line or do I need to use a function to manage the index and assign each cell individually?
Hope this makes sense.