Navigation:  Classes > bBrowser >

bBrowser:SetContextMenu()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Sets the areas for column captions, column values, column footer, selector column and title a context menu.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:SetContextMenu(

<omnuCaption>,

<omnuData>,

<omnuFooter>,

<omnuSelector>,

<omnuTitle>,

<omnuRecordGroup>

) Æ lSuccess

Arguments

<omnuCaption>The context menu for the column captions.
Data Type:Menu

 

<omnuData>The context menu for the column values.
Data Type:Menu

 

<omnuFooter>The context menu for the column footer.
Data Type:Menu

 

<omnuSelector>The context menu for the selector column.
Data Type:Menu

 

<omnuTitle>The context menu for the title.
Data Type:Menu

 

<omnuRecordGroup>The context menu for the record group column.
Data Type:Menu

Return Value

lSuccessA logical value that indicates whether the context menus was set.
TRUEThe context menus was set.
FALSEThe context menus could not be set.
Data Type:Logic

Description

The bBrowser can be assigned a specific context menu for the areas below:

Title

Selector Column

Column Captions

Column Values

Column Footer

Record Group Column

 

If for one of the arguments the value NIL is specified, the current context menu for this area remains.

 

If for one of the arguments the value NULL_OBJECT is specified, the current context menu for this area is removed.

 

With the method bBrowser:GetContextMenu() a before set context menu can be determined again.

 

Additionally to the context menus in the bBrowser with the method bDataColumn:SetContextMenu() each column can be assigned specific context menus.

 

Important notes!
The bBrowser uses the method bBrowser:GetColumnContextMenu() to determine the context menu for a certain area. If no context menu is set, for example for the column captions, then the context menu from the data area is used. You can find more information about the exact procedure in the method bBrowser:GetColumnContextMenu().
 
With the method bBrowser:EnableContextMenu() the support of context menus can be enabled or disabled for certain areas.
 
The context menus are destroyed automatically if the column is destroyed.

See Also

bBrowser:ContextMenuMode

bBrowser:ContextMenuShow()

bBrowser:EnableContextMenu()

bBrowser:GetColumnContextMenu()

bBrowser:GetContextMenu()

bBrowser:IsContextMenuEnabled()

bDataColumn:SetContextMenu()

bSample - ContextMenu

 


Page url: http://www.YOURSERVER.com/index.html?bbrowser_setcontextmenu.htm