BCGControlBar Library for .NET
ContextMenuButton Class
Members 




Inherits ToolbarMenuButton of the BCGSoft.ControlBars namespace. A "root" for context popup menu. Manages an instance of the context menu, lets open and close it, defines it’s location, manage it’s PopupMenuButton collection. It is created automatically in design view when we click on the “Add menu” of the ContextMenuManager pane. Using this class we can display context menu in run-time.
Context menu represents a shortcuts menu which can be displayed by click of the right mouse button over  the control. Context menu is used to combine ToolbarComboBox, ToolbarEditBox and ToolbarMenuButton that have a commands for managing current control. For example, you can use context menu for adding to or getting data from the clipboard, finding a text, changing a font.
Object Model
ContextMenuButton ClassCommandBarManager ClassCommandBarManager ClassCommandEntry ClassCommandBar ClassToolbarButton ClassCommandBar ClassPopupMenuBar ClassToolbarButtonCollection ClassToolbarButton ClassToolbar Class
Syntax
'Declaration
 
Public Class ContextMenuButton 
   Inherits ToolbarMenuButton
   Implements BCGSoft.Controls.Shared.ICommandObjectBCGSoft.Shared.ISupportCmdUI 
'Usage
 
Dim instance As ContextMenuButton
Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         BCGSoft.Controls.Shared.CommandObject
            BCGSoft.Controls.Shared.CommandButton
               BCGSoft.ControlBars.ToolbarButton
                  BCGSoft.ControlBars.ToolbarMenuButton
                     BCGSoft.ControlBars.ContextMenuButton
                        BCGSoft.Controls.BackstageView.BackstageMenuButtonWrapper

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ContextMenuButton Members
BCGSoft.ControlBars Namespace

Send Feedback