Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
33%
Installation Wizard into new VRC
39%
Manual into existing VRC
6%
Manual into new VRC
22%
Total votes: 49

Baanboard at LinkedIn


Reference Content

 
gbf.create.context.menu()
By patvdv at 26 Feb 2008 - 21:57

gbf.create.context.menu()

Syntax

long gbf.create.context.menu()

Description

This function creates a popup menu that is activated when the user clicks on the right mouse button and the mouse cursor is on a node. The popup menu is initially completely empty. The programmer has to add the popup menu items with the function gbf.set.menu.item(). After that, the developer has to bind this context menu to a certain object through a call to gbf.add.object() which has an argument context.menu.id for this so at the same time the node is created the context menu is assigned to it. Thus each node can have its own specific context menu.

The behaviour of each menu item is determined by the programmer who binds a function to the entry with the function gbf.set.menu.function().

The function gbf.create.context.menu() has to be called before the call to gbf.start().

Arguments

None.

Return values

>=0

Successful completion, returned value is the new popup menu.id

GBF.NO.MEMORY

Not enough memory

GBF.ILL.STATE

GBF is not in the right state to deal with this function

GBF.NOT.EXPECTED

Function called when GBF did not expect it

Related topics


0
No votes yet


All times are GMT +2. The time now is 07:17.


©2001-2018 - Baanboard.com - Baanforums.com