Adding a new menu and handler
This sample application demonstrates how to create a custom menu that can perform actions through a specified method. The control is a plugin, which means that after you compile it and place it in an Act! installation, it is available in the Act! application.
To implement the plugin
- Locate the CustomMenuPlugin.zip file you downloaded with the SDK in the Code Samples folder, and unzip it.
- Open the CustomMenuPlugin.cs file in Microsoft Visual Studio 2005 or later.
- Edit the label in line 18, private const string CUSTOM_MENU_TEXT, to specify a name for the custom menu.
- Specify a method in line 78 to perform the action you want. For example, use the GetFieldDescriptor method to get a URL from a contact record.
- Create a Visual Studio project using the open CS file, referencing:
- Act.Framework.dll
- Act.UI.Core.dll
- Compile the project by clicking the Compile tool.
- Locate the DLL file that you just compiled, and copy it to the Plugins folder in your Act! installation.
The plugin loads next time you start Act!.