Results 1 to 30 of 30

Thread: Make xp ballon with this great ocx control

  1. #1

    Thread Starter
    Banned
    Join Date
    Apr 2005
    Posts
    32

    Make xp ballon with this great ocx control

    Hello guys , How r u doing all?

    This is an ocx tool to make xp balllon tooltip.

    but i have one question how can i make the ballon shows in the system tray

    on my program icon , by the way i use mbtray.ocx to make my program shows in the systray , i will be thankful if anyone could help me.

    regeards,

    abu rahma
    Attached Files Attached Files

  2. #2

    Thread Starter
    Banned
    Join Date
    Apr 2005
    Posts
    32

    Re: Make xp ballon with this great ocx control

    19 VIEWS and none answer

  3. #3
    Hyperactive Member
    Join Date
    Apr 2001
    Location
    N42 29.340 W71 53.215
    Posts
    422

    Re: Make xp ballon with this great ocx control

    Sorry, another view, but the best I can offer is another question,
    what to heck is a .rar file?

    Oh, BTW it's "balloon"
    "The wise man doesn't know all the answers, but he knows where to find them."
    VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15

  4. #4
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Make xp ballon with this great ocx control

    Quote Originally Posted by DaveBo
    what to heck is a .rar file?
    Check this out: http://www.win-rar.com and you might find your answer.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  5. #5
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Make xp ballon with this great ocx control

    BTW, abu rahma... I won't run any OCX if I don't know what it is. Besides, I don't need to run it, so why should I risk work's computer?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  6. #6
    New Member
    Join Date
    Apr 2005
    Posts
    3

    Re: Make xp ballon with this great ocx control

    Hi Abu. He's right ... I dont run closed OCXs also ...

  7. #7

    Thread Starter
    Banned
    Join Date
    Apr 2005
    Posts
    32

    Re: Make xp ballon with this great ocx control

    still no clear answer

  8. #8
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Make xp ballon with this great ocx control

    Quote Originally Posted by abu rahma
    still no clear answer
    Ok, I'll try to make it clearer. I won't execute an OCX. I don't even know what it does. If I really needed an OCX that do some thing I would consider if I should install it and try it. But I won't install and try an OCX... just because.

    Sorry, chances are you won't get much answers / suggestions.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  9. #9
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Make xp ballon with this great ocx control

    In other words, post the source code, and let us compile it.

  10. #10
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: Make xp ballon with this great ocx control

    And get Winzip.

    I can open rar files, but most people do not have the desire to use an alternative to zip files (and why should they ?)
    Rob C

  11. #11
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: Make xp ballon with this great ocx control

    Do you wish the Balloon to appear when -
    - Pgm sends instruction to show it, and user can click to close it ?
    - When user clicks the Icon(in SysTray) ?
    - When user moves mouse over the Icon (and it then disappears somehow) ?
    Rob C

  12. #12

    Thread Starter
    Banned
    Join Date
    Apr 2005
    Posts
    32

    Re: Make xp ballon with this great ocx control

    Thanks mr.robcrombie for ur reply

    i wanna the ballon appear when program sends instruction to show it and make user be able to close it

    for example i wanna when minimize the window to the system tray the ballon appear down(on the system tray) with a message notify that the program is still runing

  13. #13

    Thread Starter
    Banned
    Join Date
    Apr 2005
    Posts
    32

    Re: Make xp ballon with this great ocx control

    I think that mr.joacem andersen the only person who can help me

  14. #14

    Thread Starter
    Banned
    Join Date
    Apr 2005
    Posts
    32

    Re: Make xp ballon with this great ocx control

    up>>>>>>

  15. #15
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: Make xp ballon with this great ocx control

    i wanna when minimize the window to the system tray the ballon appear down(on the system tray) with a message
    This does exactly that
    http://www.Planet-Source-Code.com/vb...57128&lngWId=1
    Rob C

  16. #16

    Thread Starter
    Banned
    Join Date
    Apr 2005
    Posts
    32

    Re: Make xp ballon with this great ocx control

    Thank u very much robcrombie , i cant imagine how great r u

    this is what i wanna for a hard long time


    thank u again

  17. #17
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Make xp ballon with this great ocx control

    I've created an OCX and test form based on his Mark Mokoski's project. Have a look at the code's (Full source code provided) and let me know what you think.
    Attached Files Attached Files
    Last edited by Mc Brain; May 2nd, 2005 at 04:04 PM.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  18. #18
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: Make xp ballon with this great ocx control

    Mc Brain,

    Nice code!!!
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  19. #19
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: Make xp ballon with this great ocx control

    I've created an OCX and test form based on his Mark Mokoski's project
    Hi,
    I like to keep my projects simple.
    I have never used VBGs(Project groups).
    And I prefer not to be installing controls.
    However I love the concept of user controls (CTLs).
    What would I have to change in your code, to just have a VBP with the CTL included in that project ?

    Thanks
    Rob C

  20. #20
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Make xp ballon with this great ocx control

    Quote Originally Posted by RobCrombie
    Hi,
    I like to keep my projects simple.
    I have never used VBGs(Project groups).
    And I prefer not to be installing controls.
    However I love the concept of user controls (CTLs).
    What would I have to change in your code, to just have a VBP with the CTL included in that project ?

    Thanks
    Just include the ctl file into your project. You should need to comment the About lines also... unless you also include the FormAbout.frm so that those lines don't raise any error. I've created it as an usercontrol because I found no way to create a timer on a class module... which was my first approach until I decided to move forward. If you need further help to having the usercontrol "embedded" in your project... just ask.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  21. #21
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Make xp ballon with this great ocx control

    By the way, at work's computer (Win XP) I cannot queue multiple balloons. Each time I Popup a new balloon, the previous is removed and the new one is shown.

    However, at home (W2K), I can queue as many balloons as I want and the system would show the next balloon whenever I click on it.

    Another difference: On XP I can get a balloon with the GUID icon (instead of info, warning or error) , but on W2K does not show any icon.

    Does anybody else see these behaviour?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  22. #22
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: Make xp ballon with this great ocx control

    Just include the ctl file into your project.
    Thanks for that
    Does anybody else see these behaviour?
    How about an answer 'from the horses mouth' ?
    I had been previously in touch with Mark (the author of the code).
    Seems to be a pretty decent guy.
    I have sent him a link to this thread.
    Rob C

  23. #23
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Make xp ballon with this great ocx control

    Quote Originally Posted by RobCrombie
    Thanks for that

    How about an answer 'from the horses mouth' ?
    I had been previously in touch with Mark (the author of the code).
    Seems to be a pretty decent guy.
    I have sent him a link to this thread.
    You should also add the cError.cls file as well. But, I guess you've figured that out already. Sorry... I didn't remember about this "object".

    Let's hope Mark has any answer for these "issues".
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  24. #24
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Make xp ballon with this great ocx control

    http://msdn.microsoft.com/library/de...notifyicon.asp

    Quote Originally Posted by MSDN
    Remarks

    As of Windows XP Service Pack 2 (SP2), a custom icon can be displayed in the notification balloon. This allows the caller to customize the notification beyond the previously available options of info, warning, and error, and distinguish it in the user's eye from other types of notification.
    This answer one of my questions. I can't still queue the balloons.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  25. #25
    New Member
    Join Date
    May 2005
    Posts
    4

    Smile Re: Make xp ballon with this great ocx control

    Hi guys,

    I'm looking into your "operation" questions of Win2k vs. WinXP
    Thanks to Rob for sending me the link here.

    Hope to have an answer REAL soon (afternoon May 4 East coast US time)

  26. #26
    New Member
    Join Date
    May 2005
    Posts
    4

    Re: Make xp ballon with this great ocx control

    Hello to All,

    Seems that both the GUID icon and "Queuing" of balloon tips issue
    are one in the same.

    All has to to do with the Shell32.dll version.
    Win2K is ver 5.x
    WinXP is ver 6.x

    The internals for the Shell32.dll are different. the "Queuing" with Win2K
    is realy a "Bug" in the ver 5.x DLL we can take advantage of.

    See the following MSDN pages ....

    http://msdn.microsoft.com/library/de...e/versions.asp

    http://msdn.microsoft.com/library/de...fyicondata.asp

    http://msdn.microsoft.com/library/de...notifyicon.asp

    Bottom line is, it works the way it works!

    I have uploaded a new project to PSC that everyone can play with, URL is ....
    http://www.planet-source-code.com/vb...60374&lngWId=1
    Last edited by Mark Mokoski; May 5th, 2005 at 10:50 AM.

  27. #27
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Make xp ballon with this great ocx control

    Quote Originally Posted by Mark Mokoski
    Hello to All,

    Seems that both the GUID icon and "Queuing" of balloon tips issue
    are one in the same.

    All has to to do with the Shell32.dll version.
    Win2K is ver 5.x
    WinXP is ver 6.x

    The internals for the Shell32.dll are different. the "Queuing" with Win2K
    is realy a "Bug" in the ver 5.x DLL we can take advantage of.

    See the following MSDN pages ....

    http://msdn.microsoft.com/library/de...e/versions.asp

    http://msdn.microsoft.com/library/de...fyicondata.asp

    http://msdn.microsoft.com/library/de...notifyicon.asp

    Bottom line is, it works the way it works!

    I have uploaded a new project to PSC that everyone can play with, URL is ....
    http://www.planet-source-code.com/vb...60374&lngWId=1
    Thanks for the info... but, now, I have an extra question for you. It says that if Shell_NotifyIcon fails, you can get the last error by calling the GetLastError API. If I remove the icon from the systray and force to popup a balloon, it won't popup obviously and returns 0 (zero). However, if I call the GetLastError API I get no error at all. I don't know if I'm using the GetLastError API correctly. I've downloaded the BAS I attached but it returns no error at all. Am I using the GetLastError API incorrectly or Shell_NotifyIcon won't consider this as an error??

    I will upload a newer version (Full Source Code) with some changes I made to the test and the OCX. But I will like to add this GetLastError working (if possible) before I upload.
    Attached Files Attached Files
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  28. #28
    New Member
    Join Date
    May 2005
    Posts
    4

    Re: Make xp ballon with this great ocx control

    Nobody said Microsoft was perfect!

    Let me look into the method(s) of seeing whats in the tray etc.

    I'm away for the weekend (starting thursday night), off to a Ham Radio
    flea market (Ham Fest) in New Hampshire, so I'll be "roughing it"
    without internet access for the next three days.

    Just need some time (I don't program for a living).

    Mark

  29. #29
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Make xp ballon with this great ocx control

    Actually, I have a boolean variable to know if there's an icon on the systray or not. If there is none, I cancel the balloon and answer with a "custom error" saying that the icon is missing.

    I was wondering if I could get rid of this "If bVisible Then" and let the Shell_NotifyIcon tell the user about the problem.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  30. #30
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Make xp ballon with this great ocx control

    I've tried to implement it with the GetLastError but I had no luck. Here's the last version with some minor changes.
    Attached Files Attached Files
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

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