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++ » UppHub » Docking - Strange behaviour with GlCtrl
Re: Docking - Strange behaviour with GlCtrl [message #27437 is a reply to message #27431] Sat, 17 July 2010 19:00 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Found.... it's a bug in GetRectInParentWindow() when control is inside a frame.
Here the (hopefully) right version, file X11Wnd.cpp from line 140 :

// Gets the rect inside the parent window
Rect Ctrl::GetRectInParentWindow(void) const
{
	GuiLock __;
	Rect r = GetScreenRect();
	Ctrl *q = parent;
	while(q && !q->top)
		q = q->parent;
	if(q)
	{
		Rect pr = q->GetScreenRect();
		r -= pr.TopLeft();
	}
	return r;
}


Mirek, could you apply it ? Smile

Ciao

Max
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: WebMail package (POP/SMPT/IMAP)
Next Topic: Doking:Does the Dock Manager work correctly?
Goto Forum:
  


Current Time: Thu May 16 14:10:53 CEST 2024

Total time taken to generate the page: 0.01598 seconds