ContextMenu SEToolBar Assign

<< Click to Display Table of Contents >>

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

ContextMenu SEToolBar Assign

Previous pageReturn to chapter overviewNext page

Purpose

Sets a contextmenu to the complete rebar control or the specified toolbar or rebar band.

 

Prototype

METHOD SetContextMenu(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:SetContextMenu(RebarContextMenu{}) Sets the default contextmenu for the complete rebar control.

 

oToolBar:SetContextMenu(BandContextMenu{}, #Maintoolbar) Set a band contextmenu for the band with the name #Maintoolbar.