Yes i have searched, all results show "Unstable code"
Does anybody know of "Reliable" code to minimize my app to the system tray and show an icon? Also if possible, seeming as im using the Smart Menu XP control, could i show a popup menu using this control when the icon is clicked?
Originally posted by Madboy Yes i have searched, all results show "Unstable code"
Does anybody know of "Reliable" code to minimize my app to the system tray and show an icon? Also if possible, seeming as im using the Smart Menu XP control, could i show a popup menu using this control when the icon is clicked?
Thats the problem though i right clicked first, then tried left. Left showed the menu fine, but bugged up because i right clicked first. Maybe handle the right click of the icon is a good icon
Originally posted by Merri I found this code from my archives. Seemed to work nice and smooth.
I've added this code to one of my apps and it works perfectly. On my other application, I can't get the form1_mousemove event to fire when my mouse is over the Tray Icon. That means, once I minimize the form to the tray, the popup menu will not popup since the form1_mousemove detects mousebuttons.
They have a ton of examples. Do you know the URL or name of a good and stable one?
The second systray.zip file, just above this post is very nice, but for some reason, it's not working in my application. Works perfect in a different one.
With the code I posted, you could try creating a picturebox named Systray and then change hWnd setting in Form_Activate to point to this picturebox instead of the form. Also move MouseMove events to this picturebox.
Does it work? I don't have the time to try, I want to stay tightly with my current project...
I don't recommend using SmartMenuXP since it is unstable and manages to mess up in XP. I can't remember what caused it to crash every now and then, but I wasn't using it in any special way.
I guess there are other ways to show cool menus... I'll do something for my current project once I'm more done with it (IRC client, four days passed, fully usable but requires fixing and adding more features before I can even dream about releasing it... uh, started talking too much again)
When I still had the control, it didn't work correctly when XP used XP-style. Menu borders didn't show up right etc. etc. So the control doesn't support XP. Weird?
And this was tested on three different installations of XP. Three can't be wrong
Also, my app did a lot of manipulation to the menu and it didn't seem to handle it. Added and removed continuously items and so on.
However, the only problem with it is that it subclasses the form. This is not good practice, but for this purpose it works fine. I have other code that creates it's own msg window...will post that when I can find it.
In fact it's on VBF somewhere. Do a search for Woka and vbTools