Developers Notebook-WxMac WxTaskBarIcon

From WxWiki

Jump to: navigation, search

To cause the notification icon to 'bounce' in the Dock area, simply use the code below:

   NMRec nmRec = {0};
   nmRec.qType = nmType;
   nmRec.nmMark = 1;
   NMInstall(&nmRec);

This will make the icon bounce until it is clicked on. Care should however be taken not to annoy the use will a constantly bouncing icon, which is why I normally make it bounce once with the code below:

   NMRec nmRec = {0};
   nmRec.qType = nmType;
   nmRec.nmMark = 1;
   if (NMInstall(&nmRec) == noErr)
        NMRemove (&nmRec);
Personal tools