|
-
Sep 29th, 2001, 11:53 PM
#1
Thread Starter
New Member
Help: System Tray Tip
I need some help regarding to setting up system tray tip.
i.e
If i write a program to put my icon in the system tray, and i want to show the calendar whenever i move my cursor/mouse in the system tray over my icon. I know how to show a simple text in the tooltip place, but i want to know if i can show a window or like i said a calendar etc.
I would be very grateful if someone can help me regarding this.
-
Oct 1st, 2001, 03:39 AM
#2
Try
Try having a borderless form show on the mouse over event.
-
Oct 1st, 2001, 05:41 AM
#3
Thread Starter
New Member
Tried that also
I tried the mouseover event, but that doesn't work for the icon's in the system tray ( it works only for form and other objects.
Any other idea???
-
Oct 2nd, 2001, 01:14 AM
#4
Fanatic Member
I believe what he was talking about was for the picturebox (normally a picturebox) whose hWnd you add to the NOTIFYICONDATA struct that you pass along to Shell_Notify icon. When you set it up with WM_MOUSEMOVE as the message, you can use the picturebox's _MouseMove event to pop up the form he was talking about, since moving around in the tray area will send WM_MOUSEMOVE messages to the picturebox.
I'm baaaack...
VB5 Professional Edition, VC++ 6
Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se
I feel special because I finally figured out how to loop midis: Post link
I'm a fanatic too 
-
Oct 2nd, 2001, 01:42 AM
#5
Yep
Thanks Kaverin, that is what I was talking about. I haven't tried it but I don't see why it wouldn't work.
-
Oct 2nd, 2001, 02:01 AM
#6
Thread Starter
New Member
Can u get me a sample code ???
Can i have a sample code of how to go about the procedure that you told me ??? I would be very grateful if u can help me out with this problem. Thx a lot in advance.
-
Oct 2nd, 2001, 12:45 PM
#7
Fanatic Member
Take a look at this: http://www.vbforums.com/showthread.p...391#post510391
It doesn't have the form popup thing, but it has a working example of the system tray icon handling, and you'll be able to see how the picturebox in that form is getting the mouse events from the tray. You'd put your form showing stuff inside the _MouseMove event of that form.
After I posted this I looked at my own form again, and saw that it uses WM_MOUSEDOWN messages, but the principle is the same.
Last edited by Kaverin; Oct 2nd, 2001 at 12:49 PM.
I'm baaaack...
VB5 Professional Edition, VC++ 6
Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se
I feel special because I finally figured out how to loop midis: Post link
I'm a fanatic too 
-
Oct 2nd, 2001, 10:24 PM
#8
Thread Starter
New Member
thx for your help. I did try as you told, it did work. But can i know if it is possible to write a code for mouseover instead of mousemove ??? if so please send me the long value for mouseover. And also i did the program in a different way, i used a icon for the form and used that when i minimized it to the tray. So i didn't have a prictureicon. My email id is [email protected] if u can mail me, i will be able to explain in detail.
Thx a lot for your help. It works for mousemove, but i need to know if i can write for mouseover.
-
Oct 2nd, 2001, 10:35 PM
#9
Fanatic Member
I'm not sure what the difference is. As soon as you get the mouse in the tray over the icon, WM_MOUSEMOVE messages will be going through. If they're going through, obviously the mouse is over the icon.
I'm baaaack...
VB5 Professional Edition, VC++ 6
Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se
I feel special because I finally figured out how to loop midis: Post link
I'm a fanatic too 
-
Oct 3rd, 2001, 12:56 AM
#10
Thread Starter
New Member
the difference is, if i write in mousemove, the popup/message is visible even after i move the mouse to a different place/position. So if i write in mouseover, it will be available till the mouse is over my icon/picture rite. So only.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|