setWindowIcon()

Sets the header of a module.

Synopsis

setWindowIcon( string modulename, [ string panelName,] string fileName);

Parameters

Parameter Description
moduleName Name of the module
panelName Name of the panel
fileName Name of the picture which shall be shown as window icon. The file name can be specified as relative path to the /picture directory or as absolute path (e.g. as it is returned by the getPath() function).

Return value

In case of an error -1, otherwise 0.

Description

This function defines an icon which shall be displayed on the left side of a module's title bar at runtime.

Example

main()
{
  setWindowIcon(myModuleName(), "TestPanel.pnl",
  "icon_test.jpg");
}

Assignment

Panel functions

Availability

UI