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) » Ctrl::Add(GLCtrl) Bug (Linux)
Ctrl::Add(GLCtrl) Bug (Linux) [message #16583] Sun, 29 June 2008 17:52 Go to next message
kodos is currently offline  kodos
Messages: 111
Registered: March 2008
Experienced Member
Hi,

and another one Smile

This time on Linux again.

If I remove the GLCtrl from a window and I want to add it again latter it gets "stuck". The GLPaint method gets called but nothing is displayed.

In the test case the red box is the GLCtrl and the blue box is a StaticRect.
Re: Ctrl::Add(GLCtrl) Bug (Linux) [message #16594 is a reply to message #16583] Mon, 30 June 2008 21:22 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
X11DHCtrl.cpp, from line 293 :
/////////////////////////////////////////////////////////////////////////////////////////
// State handler
void DHCtrl::State(int reason)
{
	Window dummy;
	int x, y;
	unsigned int width, height, border, depth;
	Rect r;

	// No handling if in error state
	if( isError)
		return;

	// Initializes the control if needed (and possible...)
	if(!isInitialized && GetTopWindow() && GetTopWindow()->GetWindow())
		Init();

	if(isInitialized)
	{
		switch( reason )
		{
			case FOCUS      : // = 10,
				break;

			case ACTIVATE   : // = 11,
				break;

			case DEACTIVATE : // = 12,
				break;

			case SHOW       : // = 13,
				MapWindow(IsShown());
				break;

			case ENABLE     : // = 14,
				break;

			case EDITABLE   : // = 15,
				break;

			case OPEN       : // = 16,
===================>HERE	MapWindow(IsShown());
				break;



Ciao

Max
Re: Ctrl::Add(GLCtrl) Bug (Linux) [message #16602 is a reply to message #16594] Tue, 01 July 2008 08:23 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks, patch applied.

Mirek
Re: Ctrl::Add(GLCtrl) Bug (Linux) [message #16607 is a reply to message #16602] Tue, 01 July 2008 22:29 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
still not in Uvs, fixed in svn Smile

Ciao

Max
Re: Ctrl::Add(GLCtrl) Bug (Linux) [message #16609 is a reply to message #16583] Wed, 02 July 2008 02:17 Go to previous message
kodos is currently offline  kodos
Messages: 111
Registered: March 2008
Experienced Member
Thank you Smile
Previous Topic: Monitor Size
Next Topic: SVN UPP Issue (Linux 64bit)
Goto Forum:
  


Current Time: Fri Mar 29 05:48:56 CET 2024

Total time taken to generate the page: 0.01600 seconds