-
2 Attachment(s)
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
-
Re: Make xp ballon with this great ocx control
-
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"
-
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.
-
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?
-
Re: Make xp ballon with this great ocx control
Hi Abu. He's right ... I dont run closed OCXs also ...
-
Re: Make xp ballon with this great ocx control
-
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.
-
Re: Make xp ballon with this great ocx control
In other words, post the source code, and let us compile it.
-
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 ?)
-
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) ?
-
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
-
Re: Make xp ballon with this great ocx control
I think that mr.joacem andersen the only person who can help me
-
Re: Make xp ballon with this great ocx control
-
Re: Make xp ballon with this great ocx control
Quote:
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
-
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
-
1 Attachment(s)
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.
-
Re: Make xp ballon with this great ocx control
-
Re: Make xp ballon with this great ocx control
Quote:
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
-
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.
-
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?
-
Re: Make xp ballon with this great ocx control
Quote:
Just include the ctl file into your project.
Thanks for that
Quote:
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.
-
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".
-
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. :cry:
-
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)
-
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
-
1 Attachment(s)
Re: Make xp ballon with this great ocx control
Quote:
Originally Posted by Mark Mokoski
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.
-
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
-
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.
-
1 Attachment(s)
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.