Hide Table of Contents
CreateFlyoutGroup2 Method (ICommandManager)

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

.NET Syntax

Visual Basic (Declaration) 
Function CreateFlyoutGroup2( _
   ByVal UserID As System.Integer, _
   ByVal Title As System.String, _
   ByVal ToolTip As System.String, _
   ByVal Hint As System.String, _
   ByVal MainIconList As System.Object, _
   ByVal IconList As System.Object, _
   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 MainIconList As System.Object
Dim IconList As System.Object
Dim CallbackFunction As System.String
Dim UpdateCallbackFunction As System.String
Dim value As FlyoutGroup
 
value = instance.CreateFlyoutGroup2(UserID, Title, ToolTip, Hint, MainIconList, IconList, CallbackFunction, UpdateCallbackFunction)
C# 
FlyoutGroup CreateFlyoutGroup2( 
   System.int UserID,
   System.string Title,
   System.string ToolTip,
   System.string Hint,
   System.object MainIconList,
   System.object IconList,
   System.string CallbackFunction,
   System.string UpdateCallbackFunction
)
C++/CLI 
FlyoutGroup^ CreateFlyoutGroup2( 
&   System.int UserID,
&   System.String^ Title,
&   System.String^ ToolTip,
&   System.String^ Hint,
&   System.Object^ MainIconList,
&   System.Object^ IconList,
&   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
MainIconList
Array of strings for the paths to the image files for this flyout button (see Remarks)
IconList
Array of strings for the paths to the image files containing all of the flyout toolbar buttons and separators (see Remarks)
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 the update
function returns...
Then SOLIDWORKS...
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:

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.

This method supports scaling for high resolution screens with high resolution operating system scaling options.

The array of strings for the paths to the image files for MainIconList and IconList can contain images of the following sizes:

  • 20 x 20 pixels
  • 32 x 32 pixels
  • 40 x 40 pixels
  • 64 x 64 pixels
  • 96 x 96 pixels
  • 128 x128 pixels 

The order in which you specify the image files must be the same for MainIconList and IconList. For example, if you specify an array of paths to 20 x 20 pixels, 32 x 32 pixels, and 40 x 40 pixels images for MainIconList, then you must specify an array of paths to 20 x 20 pixels, 32 x 32 pixels, and 40 x 40 pixels images for IconList. The images should use a 256-color palette.

 

See Also

Availability

SOLIDWORKS 2016 FCS, Revision Number 24.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:   CreateFlyoutGroup2 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) 2016 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.