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.set.buttonstate()
By patvdv at 26 Feb 2008 - 21:57

gbf.set.buttonstate()

Syntax

long gbf.set.buttonstate (
  long button.id, long button.state )

Description

This function regulates the state of the standard buttons. This function can only be used if the default.button mask in the function gbf.init() is set with the standard buttons that need to be controlled. The old behavour of this option was that all the standard buttons were shown but disabled. This is still the case but now it is possible to enable or disable these buttons. When, however, the standard.button mask is used then it is not possible to adjust the standard buttons using this function. The GBF will then take over controll of these buttons. This is also default behaviour. To improve the accessibility to the buttons the application function gbf.on.selection() can be used. This function is called whenever a selection is made. It is clear that the user of this function is fully responsible for the behaviour of the buttons. The following table gives the buttons that can be manipulated through this function:

Button.id

Description

GBF.BUTTON.COPY

Copy the current selected object(s)

GBF.BUTTON.CUT

Cut (delete) the current selected object(s)

GBF.BUTTON.DELETE

Delete the current selected object(s)

GBF.BUTTON.GRP.NEW

Insert a new group object

GBF.BUTTON.INSERT

Insert a new object

GBF.BUTTON.PASTE

Paste the contents of the cut/copy buffers into the current selected object

GBF.BUTTON.TEXT

Start the text editor for the current selected object(s)

GBF.BUTTON.UNDO

Undo the last operation

Arguments

button.id

The identification of the button. See the list above.

button.state

The state of the buttons or button.state can be either GBF.DISABLED or GBF.ENABLED.

Return values

0

Success

GBF.NO.BUTTON

The requested button does not exist

GBF.ILL.BUTTON

The given button is illegal or not supported yet

GBF.ILL.STATE

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

Related topics


0
No votes yet


All times are GMT +2. The time now is 09:49.


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