<< Click to Display Table of Contents >> ContextMenu SEToolBar Access |
![]() ![]() ![]() |
Purpose
Gets the default rebar contextmenu or a band contextmenu.
Prototype
METHOD GetContextMenu(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: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:GetContextMenu(#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.