Purpose
Sets a context menu to the areas column caption, column values and column footer.
Class
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
lSuccess | A logical value that indicates whether the context menus was set. |
TRUE | The context menus was set. |
FALSE | The 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()
bDataColumn:EnableContextMenu()
bDataColumn:IsContextMenuEnabled()
Page url: http://www.YOURSERVER.com/index.html?bdatacolumn_setcontextmenu.htm