Hide Table of Contents
CreateFlyoutGroup Method (ICommandManager)

Creates a new flyout in the CommandManager and context-sensitive menus.

.NET Syntax

Visual Basic (Declaration) 
Function CreateFlyoutGroup( _
   ByVal UserID As System.Integer, _
   ByVal Title As System.String, _
   ByVal ToolTip As System.String, _
   ByVal Hint As System.String, _
   ByVal SmallIcon As System.String, _
   ByVal LargeIcon As System.String, _
   ByVal SmallImageList As System.String, _
   ByVal LargeImageList As System.String, _
   ByVal CallbackFunction As System.String, _
   ByVal UpdateCallbackFunction As System.String _
) As FlyoutGroup
Visual Basic (Usage) 
Dim instance As ICommandManager
Dim UserID As System.Integer
Dim Title As System.String
Dim ToolTip As System.String
Dim Hint As System.String
Dim SmallIcon As System.String
Dim LargeIcon As System.String
Dim SmallImageList As System.String
Dim LargeImageList As System.String
Dim CallbackFunction As System.String
Dim UpdateCallbackFunction As System.String
Dim value As FlyoutGroup
 
value = instance.CreateFlyoutGroup(UserID, Title, ToolTip, Hint, SmallIcon, LargeIcon, SmallImageList, LargeImageList, CallbackFunction, UpdateCallbackFunction)
C# 
FlyoutGroup CreateFlyoutGroup( 
   System.int UserID,
   System.string Title,
   System.string ToolTip,
   System.string Hint,
   System.string SmallIcon,
   System.string LargeIcon,
   System.string SmallImageList,
   System.string LargeImageList,
   System.string CallbackFunction,
   System.string UpdateCallbackFunction
)
C++/CLI 
FlyoutGroup^ CreateFlyoutGroup( 
&   System.int UserID,
&   System.String^ Title,
&   System.String^ ToolTip,
&   System.String^ Hint,
&   System.String^ SmallIcon,
&   System.String^ LargeIcon,
&   System.String^ SmallImageList,
&   System.String^ LargeImageList,
&   System.String^ CallbackFunction,
&   System.String^ UpdateCallbackFunction
) 

Parameters

UserID

Unique, user-defined ID for the new flyout

Title

Name of the flyout to create

ToolTip

ToolTip for the new flyout

Hint

Text displayed in SolidWorks status bar when a user's mouse pointer is over the flyout

SmallIcon
Path to the small bitmap or PNG used in the flyout
LargeIcon
Path to the large bitmap or PNG used in the flyout
SmallImageList
Path to the bitmap or PNG containing all of the small button and separator images for this flyout
LargeImageList
Path to the bitmap or PNG containing all of the large button and separator images for this flyout
CallbackFunction

Function to call when the flyout is selected

UpdateCallbackFunction
Optional update function that controls the state of the item; if specified, then SolidWorks calls this function before displaying the item (see Remarks)

If this update function returns...

 

Then the SolidWorks software...

0

Disables the item

1

Enables the item; this is the default state if no update function is specified

Return Value

IFlyoutGroup

Example

Remarks

After creating the flyout, display it on a CommandManager tab by calling ICommandTabBox::AddCommands. Call IFlyoutGroup::AddContextMenuFlyout to add it to context menus. Call IFlyoutGroup::AddCommandItem to add menu items to the flyout group.

If any flyout menu items are enabled, then the flyout button cannot be disabled by the flyout group's UpdateCallbackFunction. The sensitivity of the top-level flyout button is always determined by its enabled menu items. Disabled flyout menu items do not appear in the flyout menu. If there are no flyout menu items, then control of the top-level flyout button is returned to the flyout group's UpdateCallbackFunction.

 

See Also

Availability

SolidWorks 2011 FCS, Revision Number 19.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:   CreateFlyoutGroup Method (ICommandManager)
*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) 2013 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.