Results 1 to 10 of 10

Thread: Help: System Tray Tip

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Location
    India
    Posts
    6

    Question 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.

  2. #2
    AutoBot
    Guest

    Try

    Try having a borderless form show on the mouse over event.

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Location
    India
    Posts
    6

    Thumbs down 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???

  4. #4
    Fanatic Member Kaverin's Avatar
    Join Date
    Oct 2000
    Posts
    930
    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

  5. #5
    AutoBot
    Guest

    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.

  6. #6

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Location
    India
    Posts
    6

    Arrow 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.

  7. #7
    Fanatic Member Kaverin's Avatar
    Join Date
    Oct 2000
    Posts
    930
    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

  8. #8

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Location
    India
    Posts
    6
    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.

  9. #9
    Fanatic Member Kaverin's Avatar
    Join Date
    Oct 2000
    Posts
    930
    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

  10. #10

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Location
    India
    Posts
    6
    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
  •  



Click Here to Expand Forum to Full Width