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 » TopWindow&PopUp, TrayIcon » TrayIcon test V2
TrayIcon test V2 [message #33797] Wed, 14 September 2011 11:07 Go to next message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
Hello everybody,

I made a trayicon test and ahve a difficulty to add a toolbar on it. Here is my project.
Thanks for your help

Ratah

[Updated on: Thu, 15 September 2011 09:50]

Report message to a moderator

Re: TrayIcon test [message #33806 is a reply to message #33797] Thu, 15 September 2011 09:03 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
trayiconeV2::trayiconeV2()
{	
...
	AddFrame(traybar);
	traybar.Set(THISBACK(TrayBar));
}

void trayiconeV2::TrayBar(Bar& bar)
{
	bar.Add(CtrlImg::new_doc(), callback1(Exclamation, "Hello!"));
}
Re: TrayIcon test [message #33808 is a reply to message #33806] Thu, 15 September 2011 09:18 Go to previous messageGo to next message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
Thank you mirek!!
But i want it on the trayicon, I mean MenuBar not toolbar Smile. Now I realize it works but with Right click.

Here is another version of my TrayIcon test.
In this project i try to override WinProc for TrayIcon to change
MenuBar action on WM_LBUTTOMDOWN.

The program run properly except when i want to use trayicon.
Where is it wrong

[Updated on: Thu, 15 September 2011 11:21]

Report message to a moderator

Re: TrayIcon test [message #33811 is a reply to message #33808] Thu, 15 September 2011 12:54 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
ratah wrote on Thu, 15 September 2011 03:18

Thank you mirek!!
But i want it on the trayicon, I mean MenuBar not toolbar Smile. Now I realize it works but with Right click.

Here is another version of my TrayIcon test.
In this project i try to override WinProc for TrayIcon to change
MenuBar action on WM_LBUTTOMDOWN.

The program run properly except when i want to use trayicon.
Where is it wrong


Ash, so plese be more specific.

Do I understand well that what do you desire is menu on left button?

Mirek
Re: TrayIcon test [message #33813 is a reply to message #33811] Thu, 15 September 2011 14:23 Go to previous messageGo to next message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
exactly

Ratah

[Updated on: Thu, 15 September 2011 14:23]

Report message to a moderator

Re: TrayIcon test [message #33816 is a reply to message #33813] Thu, 15 September 2011 15:51 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
trayiconeV2::trayiconeV2()
{	
...	
	trayicon.WhenLeftDown = THISBACK(DoMenu);
}


void trayiconeV2::DoMenu()
{
	MenuBar::Execute(NULL, THISBACK(TrayMenu), GetMousePos());
}
Re: TrayIcon test [message #33820 is a reply to message #33816] Fri, 16 September 2011 11:28 Go to previous message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
Thanks Mirek
Previous Topic: [BUG?] X11 (at least OSX) Menus displayed under TopWindow, owner=RootWindow
Next Topic: How to call a new window?
Goto Forum:
  


Current Time: Tue Apr 16 19:37:09 CEST 2024

Total time taken to generate the page: 1.86184 seconds