<<

Contents

Search

>>

 

REMOVE_TOOLBAR_ICON

 

 

Function

 

 

Syntax:

REMOVE_TOOLBAR_ICON(<Handle of Toolbar>,<ID>)

 

<Handle of Toolbar>

= <NUM-EXPRESSION>

<ID>

= <STRING-EXPRESSION>

 

Meaning:

Removes the icon identified by <ID> from the toolbar with the handle <Handle of Toolbar>.

 

REMOVE_TOOLBAR_ICON returns the following values:

 

Result

Meaning

1

The function has been executed successfully.

-1

A runtime error has occured.

-2

The Toolbar <Handle of Toolbar> does not exist.

-3

The icon identified by <ID> does not exist.

 

Parameter:

Handle of Toolbar

Handle of Toolbar

 

ID

Identification string of icon

 

Sample:

/* Create Toolbar

NO% = ADD_TOOLBAR("@ebussave.gif|Save|Icon-1;;ebusnew.gif|New"

IF NO% < 0

THEN … Error …

ENDIF

…

/* Remove first icon

H% = REMOVE_TOOLBAR_ICON(NO%,"Icon-1")

IF H% <> 1

THEN … Error …

ENDIF

 

See also:

ENABLE_TOOLBAR_ICON

ADD_TOOLBAR_ICON

REMOVE_TOOLBAR

ADD_TOOLBAR