U++ framework
Do not panic. Ask here before giving up.

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: 1313
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: Sun Oct 25 10:47:11 GMT+1 2026

Total time taken to generate the page: 0.00511 seconds