<< Click to Display Table of Contents >> ContextMenu SEToolBar Assign |
![]() ![]() ![]() |
Purpose
Assigns a contextmenu to the complete rebar control or the specified toolbar or rebar band.
Prototype
ASSIGN ContextMenu(oMenu, symBandTB) CLASS SEToolBar
Arguments
<oMenu> |
The contextmenu object. If oMenu is NIL or not defined a former assigned context menu becomes deleted. |
<symBandTB> |
The symbolic name of the band (or toolbar), whose contextmenu will be set. If symBandTB is Null_Symbol or not defined, the default contextmenu for the complete rebar control is set. If the toolbar is no rebar, this parameter is not used. |
Examples
oToolBar:ContextMenu := RebarContextMenu{} Sets the default contextmenu for the complete rebar control.
(If this syntax forces a compiler error, please use oToolBar:SetContextMenu(RebarContextMenu{}))
oToolBar:ContextMenu[#Maintoolbar] := BandContextMenu{} Set a band contextmenu for the band with the name #Maintoolbar.