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 » Developing U++ » U++ Developers corner » Eye Care example topmost not working. (How to set a window to stay at the top of the z-order)
Eye Care example topmost not working. [message #44061] Sat, 20 December 2014 20:30 Go to previous message
rainbowsally is currently offline  rainbowsally
Messages: 29
Registered: December 2014
Promising Member
The TopMost(bool) function sets or resets the x11 attribute for a window that can stay on top of all the others.

Here's the fix for the Eye Care example for linux folks.

void EyeCare::Sync()
{
#ifdef PLATFORM_WIN32
	ExStyle(config.topmost ? GetExStyle() | WS_EX_TOPMOST
	                       : GetExStyle() & ~WS_EX_TOPMOST);
  // -rs add these two lines
#else
	config.topmost ? TopMost(true) : TopMost(false);
#endif
	trayicon.Icon(ignore ? EyeCareImg::off() : EyeCareImg::icon());
	if(config.hideicon)
		ignore = false;
	trayicon.Show(!config.hideicon);
	Restart();
}

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: redmine inaccessible
Next Topic: Cross compiling with mingw
Goto Forum:
  


Current Time: Wed May 01 17:08:46 CEST 2024

Total time taken to generate the page: 0.01430 seconds