Palettes

Actions within custom action assemblies are placed in the Action palettes within Make Update.  Users can then add these actions to the update projects by interacting with the palette, just as the built in actions are added.  Custom Action developers can control the placement within the action palettes by placing attributes on the custom action class declaration.

By default, all custom actions are placed in a palette labeled Misc.  Actions are named by their class name and they have a standard action icon.

 

To control the display and placement, there are three attributes that you place on your action class declaration.

 

          System.ComponentModel.DisplayNameAttribute

          System.ComponentModel.DescriptionAttribute

          System.Drawing.ToolboxBitmapAttribute

 

Use the DisplayName attribute to change the display name of the action.  Use the Description attribute to change the tooltip on the action.  Use the ToolboxBitmap attribute to change the icon for the action.

Using these attributes…

 

                               [DisplayName("Add Text File"), Category("Sample Actions")]

                               [Description("This is a sample custom action")]

                               [ToolboxBitmap(@"P:\~Scratch\RadialChartHS.png")]

                               public class AddTextFileAction : UpdateAction

 

Causes the action to be displayed…