Navigation:  Classes > bDataColumn >

bDataColumn:SetContextMenu()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Sets a context menu to the areas column caption, column values and column footer.

Class

bDataColumn

Type

Method

Syntax

<oDataColumn>:SetContextMenu(

<omnuCaption>,

<omnuData>,

<omnuFooter>

) Æ lSuccess

Arguments

<omnuCaption>A context menu for the column caption.
Data type:Menu

 

<omnuData>A context menu for the column values.
Data type:Menu

 

<omnuFooter>A context menu for the column footer.
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 column can be assigned a specially context menu for the areas below:

Column Caption
Column Values
Column Footer

 

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 bDataColumn:GetContextMenu() a before set context menu can be determined again.

 

With the method bDataColumn:EnableContextMenu() the support of context menus can be enabled or disabled for certain areas.

 

Additionally to the context menus of the column can be set for all columns in the bBrowser with the method bBrowser:SetContextMenu().

 

Important note!
The context menus are destroyed automatically if the column is destroyed.

See Also

bBrowser:GetColumnContextMenu()

bBrowser:SetContextMenu()

bDataColumn:EnableContextMenu()

bDataColumn:GetContextMenu()

bDataColumn:IsContextMenuEnabled()

 


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