Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » tray icon & balloon notification
Re: tray icon & balloon notification [message #778 is a reply to message #772] Thu, 02 February 2006 08:51 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

I have modified a TaskbarButton class posted by Tom to work with my Ultimate Player (it was not compatybile with newest upp). It is not finished, but you can use it Smile

This is how I use it:

struct MyApp : TopWindow
{
TaskbarButton tray;
}

main...

MyApp app;

app.Open()
app.tray.Icon(MyIcon()).Label("MyApp");
app.tray.Init(app.GetHWND());
app.Run();

Use WhenDouble and WhenBar callbacks to add action for double click and popup menu.

Here it is the question to Mirek. As you can see I have to open appilication first to get the HWND for tray. It isn't the upp way Wink. I saw that Tom was using (overloading) CrateInit(HWND hwnd) method wich is not supported now and which was called when hwnd was known (I suppose so). This was very useful and made code much clener. Is it possible to get this method back?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to stick focus on a control
Next Topic: Qtf and drawing
Goto Forum:
  


Current Time: Tue May 14 20:22:32 CEST 2024

Total time taken to generate the page: 0.08682 seconds