Hide Table of Contents
SetThirdPartyPopupMenuState Method (ISldWorks)

Sets whether to show or hide a third-party popup (shortcut) menu.

.NET Syntax

Visual Basic (Declaration) 
Function SetThirdPartyPopupMenuState( _
   ByVal RegisterId As System.Integer, _
   ByVal IsActive As System.Boolean _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As ISldWorks
Dim RegisterId As System.Integer
Dim IsActive As System.Boolean
Dim value As System.Boolean
 
value = instance.SetThirdPartyPopupMenuState(RegisterId, IsActive)
C# 
System.bool SetThirdPartyPopupMenuState( 
   System.int RegisterId,
   System.bool IsActive
)
C++/CLI 
System.bool SetThirdPartyPopupMenuState( 
&   System.int RegisterId,
&   System.bool IsActive
) 

Parameters

RegisterId
ID of shortcut menu from ISldWorks::RegisterThirdPartyPopupMenu
IsActive
True to show the shortcut menu, false to hide it

Return Value

True if shortcut menu is shown, false if it is hidden

Remarks

This method is supported in C++ applications only.

Typical steps in creating and displaying your shortcut menu:

  1. Add menu and add menu items to the SOLIDWORKS main menu bar for your shortcut menu, or add an icon to a context-sensitive menu that displays your shortcut menu, or both.
  2. Register your shortcut menu.
  3. Add your shortcut menu items.
  4. Show your shortcut menu at a specific location in the SOLIDWORKS graphics area, typically from a mouse event handler.
  5. Remove a menu item from your shortcut menu, if desired.
  6. Toggle the visibility of your shortcut menu.
  7. Remove the shortcut menu from the SOLIDWORKS main menu bar and remove the icon from the context-sensitive menu, if  added.
 

See Also

Availability

SOLIDWORKS 2010 FCS, Revision Number 18.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:   SetThirdPartyPopupMenuState Method (ISldWorks)
*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) 2019 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.