PDA

View Full Version : tray icon bug


darule
December 29th, 2002, 06:56 AM
I use the application StartRight (see http://jackass.arsware.org/sr.php ). It has an icon in the traybar. To see the main window of StartRight, I have to double click this icon. But when I do ... "ID-Blaster Plus" (which also has an icon in the traybar) ALSO comes up !

I wrote about this to the programmer of StartRight, and he says :
"ID-Blaster likely didn't program their icon routines correct to only look for their own windows messages."

Can you give comment on this ?

javacool
December 29th, 2002, 10:22 AM
{QUOTE-> quoting: darule link=board=32;threadid=5808;start=0#38328 date=1041162994]
I use the application StartRight (see http://jackass.arsware.org/sr.php ). It has an icon in the traybar. To see the main window of StartRight, I have to double click this icon. But when I do ... "ID-Blaster Plus" (which also has an icon in the traybar) ALSO comes up !

I wrote about this to the programmer of StartRight, and he says :
"ID-Blaster likely didn't program their icon routines correct to only look for their own windows messages."

Can you give comment on this ?

<-QUOTE}

ID-Blaster does have its icon routines program correctly - in fact, they are incredibly simple in nature (as they don't have to be complex at all to get the job done).

BTW, ID-Blaster responds to one click in the tray to open (not two), but I'm sure you already knew that. ;) I'll look into it, but I don't believe the problem lies on ID-Blaster's end.

Best regards,

-Javacool

darule
December 30th, 2002, 12:53 AM
I solved it. You are right : the problem is NOT ID-Blaster but StartRight. As I wrote, its window comes up by double (!) clicking its tray icon and this way ANY (so I discovered now) other item comes up ALSO ! I tested it by letting the ID-Blaster window appear (clicking its tray icon once and so this icon disappears from the tray) and THEN double clicking the StartRight icon : ANOTHER window appears also, having a icon in my tray, probably next (*) to it.

(*) I guess "virtually" next, regarding starting order, I don't know

I will report this fact to the author of StartRight, advising him to make the double click a single one or a right click. And I thank you !

darule
January 2nd, 2003, 01:05 PM
Here's another part of this "discussion" : the author of StartRight responded to me :

I found what's happening. ID-Blaster is only responding to a WM_LBUTTONUP message. To demonstrate this, click the left mouse button on another tray icon and hold it down. Then, slide the mouse over the ID-Blaster icon and release the button. It will activate just as if you had clicked down on the icon and released it.

The StartRight icon is removed and Windows moves the ID-Blaster underneath the mouse cursor and when you release the button, it activates. Neither program is messing up the other, it's just a matter of where your mouse is on the screen.

"Buttons" in Windows are supposed to require two events before firing - a mouse down and a mouse up message. If you click on a button and hold it down and then move the mouse away from the button and release, the button will not "fire". System tray icons aren't documented very well so most programs don't require this behavior.

**%JJJ%**

So, "author of ID-Blaster Plus", I guess it's your turn now ... ::)

Roelof