Go Back

User login

Frontpage Sponsor


As a Customer What would do to keep your ERP Implementation intact
Proactively define Business Process-- Take the Project Ownership
Handover everything to System Integrator from drawing BP till implementation of ERP
Hire more inhouse skilled & capable IT Resource to work directly with SI
Rely on SI Architects/Consultants
Total votes: 2

Baanboard at LinkedIn

Reference Content

By patvdv at 26 Feb 2008 - 21:57



long gbf.set.button( const string, const
string normal.button(), const string selected.button(), const string
insensitive.button(), const string, long menu.item, long


Adds a button to the button bar.

A button needs three icons. These icons are all in the group identified by

For Baan IV these three icons are for when the button is in the normal state (normal.button), when it is pushed (selected.button) and when it is currently not selectable (button.insensitive). When one or more of these icons do not exist, then another will be used instead. When no icon is available then an empty button will be used. The icons should be 20 x 20 pixels.

For Baan V only the normal.button icon is used, since the GUI will take care of creating a selected icon and an insensitive icon based on this normal.button. For compatibility reasons with older versions of the GBF the arguments selected.button and insensitive.button should nevertheless be given, but may of course be empty (in other words: "") or the same as the normal.button. The normal.button icons should be 16 x 15 pixels. When it is larger all buttons on the button bar will have this larger size.

The menu.item is the menu item that will be used when the button is pushed. This menu.item should be a valid value from a preceding call to the function .

In general the message used to get the menu.text for that function should be used as for this function. The button has a name, identified by the message Note that the Help associated with this message will be given as help when topic Help is asked for this button and this button is not associated to a menu item, in other words menu.item is 0 in this function call. In case help is asked for the button which is associated to a menu item, then the Help of that menu item will be activated rather than the Help for this button. When the button is pushed the value of the message will be shown in the left-most message box and the function is called with this menu.item as identification. So for the application there is no difference whether the menu item is selected or this button is pushed.


A group name for the normal, selected and insensitive icon.


Baan(IV) The icon(20x20) to represent a button in its normal state

Baan (V) The icon (16x15) to represent all states.


Baan(IV) The icon(20x20) to represent a button in its selected state

Baan(V) -


Baan(IV) The icon(20x20) to represent a button in its insensitive (not selectable) state

Baan (V) -

The name of the button that is shown when the cursor is above this button or when help is asked on this button and No menu item is associated with this button.


The associated menu command. This menu.item should be a valid value from a preceding call to the function: .

When the is TRUE, then some extra white space is added before the button.

When the is FALSE then no extra white space is added before this new button.

Return values

> 0

Successful completion, actual button identification is returned


Should never happen


Not enough memory


Illegal menu.item value given


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

Related topics

No votes yet

All times are GMT +2. The time now is 15:01.

©2001-2018 - -