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
Docking - Strange behaviour with GlCtrl [message #27430] Sat, 17 July 2010 12:43 Go to next message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Using Docking to manage GLCtrl derivated controls gives a strange behaviour : floating windows are ok, docked right and bottom windows are ok too, but top- and left-docked windows not, the bar goes right but the content goes on opposite side.
Here an image to show that :

index.php?t=getfile&id=2662&private=0

I'll attach the sample Upp package used to test it on next post.

Ciao

Max
  • Attachment: DockGL.jpg
    (Size: 38.08KB, Downloaded 566 times)
Re: Docking - Strange behaviour with GlCtrl [message #27431 is a reply to message #27430] Sat, 17 July 2010 12:45 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Attached here the test app.

Ciao

Max
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 next 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
Re: Docking - Strange behaviour with GlCtrl [message #27550 is a reply to message #27437] Fri, 23 July 2010 10:39 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Patch applied.

I suggest to post the patch into library forum next time so it gets my attention Smile (Well, sooner or later...)

(BTW, am I right it was a bug in the code you have submitted 3 years ago? Smile

Mirek
Re: Docking - Strange behaviour with GlCtrl [message #27578 is a reply to message #27550] Fri, 23 July 2010 19:18 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
luzr wrote on Fri, 23 July 2010 10:39

Patch applied.

I suggest to post the patch into library forum next time so it gets my attention Smile (Well, sooner or later...)

(BTW, am I right it was a bug in the code you have submitted 3 years ago? Smile

Mirek


Yep, it was my fault Smile
Never tried to put the GLCtrl inside a frame before....

Max
Re: Docking - Strange behaviour with GlCtrl [message #28435 is a reply to message #27550] Wed, 01 September 2010 21:39 Go to previous messageGo to next message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
Is it possible to get the patch for I am currently using GLCtrl and I have the intention to use Docking?

Many thanks.

Cheers,

Javier
Re: Docking - Strange behaviour with GlCtrl [message #28436 is a reply to message #28435] Wed, 01 September 2010 21:50 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Bug is already fixed in core.

Ciao

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


Current Time: Fri Mar 29 00:36:14 CET 2024

Total time taken to generate the page: 0.01276 seconds