BCGControlBar Library for .NET
ShowPopupMenu Method (Toolbar)




A ToolbarButton to show a child popup menu.
Specified if the first item of the popup menu should be highlighted.
Specifies if mouse events related to the popup menu items should be blocked.
Called by the framework to display any popupmenu related to the specified toolbar button.
Syntax
'Declaration
 
Public Overridable Function ShowPopupMenu( _
   ByVal button As ToolbarButton, _
   ByVal highlightFirstItem As Boolean, _
   ByVal blockMouseEvent As Boolean _
) As Boolean
'Usage
 
Dim instance As Toolbar
Dim button As ToolbarButton
Dim highlightFirstItem As Boolean
Dim blockMouseEvent As Boolean
Dim value As Boolean
 
value = instance.ShowPopupMenu(button, highlightFirstItem, blockMouseEvent)
public virtual bool ShowPopupMenu( 
   ToolbarButton button,
   bool highlightFirstItem,
   bool blockMouseEvent
)
public: virtual bool ShowPopupMenu( 
   ToolbarButton* button,
   bool highlightFirstItem,
   bool blockMouseEvent
) 
public:
virtual bool ShowPopupMenu( 
   ToolbarButton^ button,
   bool highlightFirstItem,
   bool blockMouseEvent
) 

Parameters

button
A ToolbarButton to show a child popup menu.
highlightFirstItem
Specified if the first item of the popup menu should be highlighted.
blockMouseEvent
Specifies if mouse events related to the popup menu items should be blocked.
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

Toolbar Class
Toolbar Members

Send Feedback