Contents page

Index

Create


AFAppIcon/Create

  NAME void = Create(LPImage render, LPImage select, int id, char *iconname, LPMsgPort appmsgport);
       void = Create(AFAmigaApp *theapp, LPImage render, LPImage select, int id, char *iconname);

DESCRIPTION This function creates and adds the AppIcon to the system

INPUTS theapp - pointer to the application to manage all AppIcon messages. render - render image for the AppIcon select - select image for the AppIcon id - AppIcon ID iconname - pointer to the text you wish to appear at the bottom of the AppIcon appmsgport - LPMsgPort (struct MsgPort*) which would allow you to personally handle all messages from the window.

NOTE If a NULL is passed for the select image, the system will complement the image just like a normal icon.

Under normal circumstances the second Create method will be used the most as it will comply with true C++ function calling.

RESULT none

BUGS none known

SEE ALSO