cns_setNodeIcon

Sets an icon for the given node.

Synopsis

bool cns_setNodeIcon(string sId, string sPath);

Parameters

Parameter Description
sId ID path of the node
sPath Icon path

Return value

The function returns TRUE if successful or FALSE in case of an error.

Errors

The given node does not exist

Description

This function sets an icon for the given node. The path relative to the pictures folder (project or installation directory) must be specified.

main()
{
  cns_setNodeIcon("myNode", "myIcon.png");
}

Availability

UI, CTRL