Hide Table of Contents
AddMenuPopupItem Method (IPropertyManagerPage2)

Adds a menu item to the pop-up menu for this PropertyManager page.

.NET Syntax

Visual Basic (Declaration) 
Function AddMenuPopupItem( _
   ByVal ID As Integer, _
   ByVal ItemText As String, _
   ByVal DocumentType As Integer, _
   ByVal HintText As String _
) As Boolean
Visual Basic (Usage) 
Dim instance As IPropertyManagerPage2
Dim ID As Integer
Dim ItemText As String
Dim DocumentType As Integer
Dim HintText As String
Dim value As Boolean
 
value = instance.AddMenuPopupItem(ID, ItemText, DocumentType, HintText)
C# 
bool AddMenuPopupItem( 
   int ID,
   string ItemText,
   int DocumentType,
   string HintText
)
C++/CLI 
bool AddMenuPopupItem( 
&   int ID,
&   String^ ItemText,
&   int DocumentType,
&   String^ HintText
) 

Parameters

ID
Unique user-defined value for this pop-up menu item
ItemText
Text for pop-up menu item
DocumentType
Document types for which this pop-up menu item is displayed as defined in swDocumentTypes_e
HintText
Text displayed in the SolidWorks status bar when the user moves the cursor over this pop-up menu item

Return Value

True if the pop-up menu item is added, false if not

Remarks

This method requires that you implement these IPropertyManagerPage2Handler5 methods:

 

  • IPropertyManagerPage2Handler5::OnPopupMenuItemUpdate. When Windows attempts to select or deselect and enable or disable the pop-up menu item, SolidWorks calls IPropertyManagerPage2Handler5::OnPopupMenuItemUpdate to get the state of the pop-up menu item from the add-in. Thus, IPropertyManagerPage2Handler5::OnPopupMenuItemUpdate:

    • Processes a request for the state of the specified pop-up menu item associated with the PropertyManager page.

    • Passes the state back to SolidWorks.

 

See Also

Availability

SolidWorks 2007 FCS, Revision Number 15.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   AddMenuPopupItem Method (IPropertyManagerPage2)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:



x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2010 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.