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++ Library : Other (not classified elsewhere) » A (maybe) bug in GLControl (on Ubuntu)
[SOLVED] A (maybe) bug in GLControl (on Ubuntu) [message #12404 is a reply to message #12162] Sat, 27 October 2007 20:47 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1310
Registered: September 2007
Ultimate Contributor
Well, at the end, I found a solution for that.
The GLCtrl::State() function must be extended with a call of CloseGL() on CLOSE state :
void GLCtrl::State(int reason)
{
	if( InitializationProblem )
		return;
	
	if( IsInitialized )
	{
		switch( reason )
		{
			case SHOW: 
			{
				if( IsShown() && !IsMapped )
					MapWindow();

				if( !IsShown() && IsMapped )
					UnMapWindow();
			}; break;
			
			case LAYOUTPOS:
			{
				MoveSubWindow();
				OpenGLResize();
			}; break;

added-->
			
			case CLOSE:
			{
				CloseGL();
			}; break;

<--added
			
			default:
				break;
		}
	}
	else
		if( GetTopWindow() && GetTopWindow()->GetWindow() )
			OpenGL();
}


Whith this change, the list of top controls is updated correctly closing windows that contains GLControl.

Ciao

Max
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Layout, fonts, MS Windows, and changing DPIs...
Next Topic: How to make my package?
Goto Forum:
  


Current Time: Sat Aug 23 19:36:11 CEST 2025

Total time taken to generate the page: 0.04314 seconds