PA_SetMenuIcon

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_SetMenuIcon (params; id)

ParameterTypeDescription
paramsPA_PluginParametersParameters received in PluginMain
idshortID of a 'cicn' resource

Description

The routine PA_SetMenuIcon gives 4th Dimension the ID of a 'cicn' resource that will appear beside the area name in the tools palette plug-in area pop-up.

params is the PA_PluginParameters the plug-in received in its PluginMain routine.

ID is the unique ID of a resource of type 'cicn', in the resource fork of the plug-in.

This routine must be called when PA_GetAreaEvent returns eAE_GetMenuIcon. Otherwise, it does nothing and PA_GetLastError returns eER_BadEventCall.

Example

   PA_AreaEvent   event = PA_GetAreaEvent(params);
   if(event ==  eAE_GetMenuIcon)
      PA_SetMenuIcon( 15678 );

See Also

No reference.

Error Handling

Use PA_GetLastError to see if an error occurred (eER_BadEventCall)


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next