RFUserInterface.AddAddinMenu
(Available After RapidForm2002 PlusPack1 ServicePack1)
Description
Adds an addin menu and returns the menu ID.
Syntax
Function RFUserInterface.AddAddinMenu(workbenchName
As String, menuFullName As String, piMenuID As
Long) As RFErrorCode
The AddAddinMenu syntax has these parts:
| Part |
Description |
| workbenchName |
[IN] String Required. The name of workbench where the menu is added. |
| menuFullName |
[IN] String Required. The full name of menu. |
| piMenuID |
[OUT] Long Required. The added menu id. |
Remark
- piMenuID is used in RFAddinHook.AddinMenuPick.
- This method must be used only in addin project, and has no meaning in other
cases(Library, Workspace, etc...).
- A unique command is identified by workbench name and full menu name, which has
separator character "|" - filter character - between parent and child, as
built in the RapidForm GUI menu bar. For example, the "weld a shell"
command in the Polygon workbench can be identified as follows.
workbenchName
: "Polygon"
menuFullName : "Tool | Weld | One Shell"
For
other example, the "shrink a shell" command in the Polygon workbench
can be idenfied as follows.
workbenchName : "Polygon"
menuFullName
: "Tool | Shrink Shell"
Return to Rapidform Index