Previous Topic: Icon FunctionsNext Topic: CreateGroup - Create a New Group or Activate an Existing Group


AddItem - Add an Icon

Valid on Windows only

The AddItem function adds an icon to an existing group.

Function format:

AddItem(
	title as String,
	cmdline as String,
	iconfile as String,
	workdir as String,
	group as String, 
	min as Boolean) as Boolean
title

Identifies the title to be displayed below the icon in the Group window.

cmdline

Specifies the full command line required to run the application. This parameter must be the name of the executable file for the application, but it can also include the full path of the application and any parameters that the application needs.

iconfile

Specifies the file name of the icon to be displayed in the Group window. This file can be an executable or an icon. If this parameter is an empty string, the first icon in the command-line executable is used.

workdir

Identifies the name of the default (or working) directory.

group

Identifies the program manager group that is to be the active group. If this parameter is an empty string, Windows uses the currently active group.

min

TRUE indicates that the executable is meant to starts in a minimized state.

On successful completion, the function returns TRUE; otherwise, returns FALSE.

AddItem function returns a boolean value.