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::Icon problems
TrayIcon::Icon problems [message #933] Thu, 09 February 2006 15:04 Go to previous message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
I am trying to use runtime generated images for tray icon. I modified the TrayIcon reference example to try it:
struct App : TrayIcon {
	void Info() {
		//Icon(Tray::Icon1());
		Image img(16, 16);
		img.Set(White);
                ImageDraw w(img);
                w.DrawRect(0, 0, 8, 8, Black);
		Icon(img);
		PromptOK("TrayIcon launched this prompt!");
		Icon(Tray::Icon());
	}

	void Menu(Bar& bar) {
		bar.Add("Info..", THISBACK(Info));
		bar.Separator();
		bar.Add("Exit", THISBACK(Break));
	}

	typedef App CLASSNAME;

	App() {
		WhenBar = THISBACK(Menu);
		WhenLeftDouble = THISBACK(Info);
		Icon(Tray::Icon());
		Tip("This is U++ tray icon");
	}
};
The tray icon set from the generated Image is just empty, transparent. What is the problem?
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: TopWindow childless Clock example [BUG][FIXED]
Next Topic: showing hidden & minimized windows
Goto Forum:
  


Current Time: Sun Apr 28 22:31:16 CEST 2024

Total time taken to generate the page: 0.06821 seconds