Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
28%
500 - 800 GB
3%
800 - 1200 GB
10%
1200 - 1500 GB
10%
1500 - 2000 GB
13%
> 2000 GB
20%
Total votes: 40

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 14:39.


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