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 System.Integer, _
   ByVal ItemText As System.String, _
   ByVal DocumentType As System.Integer, _
   ByVal HintText As System.String _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IPropertyManagerPage2
Dim ID As System.Integer
Dim ItemText As System.String
Dim DocumentType As System.Integer
Dim HintText As System.String
Dim value As System.Boolean
 
value = instance.AddMenuPopupItem(ID, ItemText, DocumentType, HintText)
C# 
System.bool AddMenuPopupItem( 
   System.int ID,
   System.string ItemText,
   System.int DocumentType,
   System.string HintText
)
C++/CLI 
System.bool AddMenuPopupItem( 
&   System.int ID,
&   System.String^ ItemText,
&   System.int DocumentType,
&   System.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 IPropertyManagerPage2Handler8 methods:

 

  • IPropertyManagerPage2Handler8::OnPopupMenuItemUpdate. When Windows attempts to select or deselect and enable or disable the pop-up menu item, SolidWorks calls IPropertyManagerPage2Handler8::OnPopupMenuItemUpdate to get the state of the pop-up menu item from the add-in. Thus, IPropertyManagerPage2Handler8::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) 2014 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.