PDA

Click to See Complete Forum and Search --> : All Apps popup with Systray


hozo
Jan 16th, 2002, 10:16 AM
Any of my programs that I wrote that put an icon in the system tray seem to popup whenever I click any of them. It seems it's only when the icons are together in the tray. Usually it's when I click on 2/2 icon and the code removes 2/2 icon then 1/2 icon slides over and then also pops up.. Is there some trap I need? Am I using the same identifier? Thanks

Hack
Jan 16th, 2002, 12:13 PM
I'm confused. Your app puts two icons in the systray for the same app?

hozo
Jan 16th, 2002, 12:15 PM
No, two apps

Hack
Jan 16th, 2002, 12:31 PM
And they both have the same icon, and both pop up regardless of which one you click on?

hozo
Jan 16th, 2002, 12:36 PM
Let me explain again..


Two seperate EXE's
Two seperate Icons

1. is called POSTIT
2. is called Dr. Hozo

When I click on DR HOZO, what ever code I have is executed for Dr. Hozo but then what ever code is setup for the same type of mouse command (sgl,dbl,right, etc) is also executed on the application to the left of it in the systemtray.

In this case I have them bring windows to the foreground, which they both will do if you click the second one (whichever is loaded last).

It's ok because I got around it by just leaving the icon in the tray during the whole program run, but I was curious why it was doing that.

BShadow
Dec 11th, 2002, 02:23 PM
Does your app remove the icon from the systray? If so, it could be that when you double click on the icon, the icon is removed with the first click and all icons slide to save space. The second icon is now beneath your mouse pointer and your second click (of the double click) is on the second icon and again this app is shown...