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
14%
200 - 500 GB
32%
500 - 800 GB
4%
800 - 1200 GB
4%
1200 - 1500 GB
11%
1500 - 2000 GB
14%
> 2000 GB
21%
Total votes: 28

Baanboard at LinkedIn


Reference Content

 
gbf.set.leaf.icon()
By patvdv at 26 Feb 2008 - 21:57


gbf.set.leaf.icon()

Syntax

long gbf.set.leaf.icon(const string icon.group(),const
string unselected(),const string selected(), long is.default,[const string
icon.desc(), long context.menu]

Description

Adds a leaf node icon to the set of leaf node icons. The return value, if positive, must be used in subsequent calls to identify this icon set. Empty icons, that is empty strings, are not allowed. It is not checked whether the icons are different, so for example it is allowed to have the same icon for both selected and unselected.

Note that when using the Tree Control this default icon will also be used as the dummy icon for the next level, to enable the displaying of the '+'.

Arguments

icon.group()

The icon.group must be a valid icon group as defined in table ttdsk900 Icon Groups using session ttdsk9100m000 Icon Groups.

unselected()

The unselected and selected should be valid icons as defined in table ttdsk903 Icons using session ttdsk9103m000 Icons.

selected()

is.default

Indicates whether (if the value is true) or not (if the value is false) to use this icon set (if it could successfully be added) as the default leaf node icon set. If is.default is true then the previous default icon set is overruled.

icon.desc()

A message that contains the description of the icon. This icon.desc will be used when the GBF tree is printed. If not given or the message is empty then nothing will be printed. Also this text will be shown when help on icons is asked for via the Help -> Icon Descriptions.

context.menu

The context.menu is used when the user wants to couple a context menu to the icon (see gbf.create.context.menu() ). Every icon can have it's own context.menu. This option will be overruled by the context menu given by gbf.add.object()

Return values

> 1

The identification of this new icon set

= 1

Should never be returned, as 1 is the GBF default

GBF.NO.MEMORY

Not enough memory

GBF.ICON.EMPTY

Empty icon strings are not allowed

GBF.ICON.LOAD.

ERROR

Could not load the icon

GBF.ILL.BITMAP

Illegal bitmap for icon (not a GIF file)

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 05:31.


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