ContextMenu SEToolBar Access

<< Click to Display Table of Contents >>

Navigation:  SEUIXP Classes for X# > Classes > SEToolBar >

ContextMenu SEToolBar Access

Previous pageReturn to chapter overviewNext page

Purpose

Gets the default rebar contextmenu or a band contextmenu.

 

Prototype

ACCESS ContextMenu(symBandTB) CLASS SEToolBar

 

Arguments

[<symBandTB>]

The symbolic name of the band (or toolbar). If the toolbar is no rebar, this parameter is not used.

 

Examples

 

oContextMenu := oToolBar:ContextMenu

(If this syntax forces a compiler error, please use oToolBar:GetContextMenu())

 

Gets a contextmenu if the cursor position is over one of the bands of the rebar control.

If the band under the cursor has a contextmenu this menu is returned, otherwise the default rebar contextmenu is returned or

Null_Object, if no default rebar contextmenu exists.

 

oContextMenu := oToolBar:ContextMenu[#Maintoolbar]

 

Gets the band contextmenu for the band with the name #Maintoolbar, if it exists, otherwise Null_Object.

 

oContextMenu := oToolBar:ContextMenu[Null_Symbol]

 

Gets the default contextmenu for the complete rebar control, if it exists, otherwise Null_Object.