Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Display problem with Splitter, GLCtrl and MenuBar
Re: Display problem with Splitter, GLCtrl and MenuBar [message #15732 is a reply to message #15711] |
Tue, 06 May 2008 20:14   |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Fixed, will post updated code in svn.
Quick fixes : In Core/X11DHCtrl.cpp, from line 341 :
case POSITION : // = 100,
case LAYOUTPOS : // = 101,
r = GetRectInParentWindow();
XGetGeometry(Xdisplay, top->window, &dummy, &x, &y, &width, &height, &border, &depth);
if( (x != r.left || y != r.top) && ((int)width == r.Width() && (int)height == r.Height()))
XMoveWindow(Xdisplay, top->window, r.left, r.top);
else if( (x == r.left || y == r.top) && ((int)width != r.Width() || (int)height != r.Height()))
XResizeWindow(Xdisplay, top->window, r.Width(), r.Height());
else if( x != r.left || y != r.top || (int)width != r.Width() || (int)height != r.Height())
XMoveResizeWindow(Xdisplay, top->window, r.left, r.top, r.Width(), r.Height());
break;
default:
break;
} // switch(reason)
}
} // END DHCtrl::State()
and, in X11Wnd, from line 152 :
// Gets the rect inside the parent window
Rect Ctrl::GetRectInParentWindow(void) const
{
Rect r = GetRect();
Ctrl *q = parent;
while(q)
{
if(q->top)
break;
r += q->GetRect().TopLeft();
q = q->parent;
}
if(q)
r += q->GetScreenView().TopLeft() - q->GetScreenRect().TopLeft() ;
return r;
}
// 01/12/2007 - END
Ciao
Max
|
|
|
 |
|
Display problem with Splitter, GLCtrl and MenuBar
By: kodos on Thu, 01 May 2008 20:02
|
 |
|
Re: Display problem with Splitter, GLCtrl and MenuBar
|
 |
|
Re: Display problem with Splitter, GLCtrl and MenuBar
|
 |
|
Re: Display problem with Splitter, GLCtrl and MenuBar
By: kodos on Wed, 07 May 2008 00:50
|
 |
|
Re: Display problem with Splitter, GLCtrl and MenuBar
|
 |
|
Re: Display problem with Splitter, GLCtrl and MenuBar
By: kodos on Mon, 12 May 2008 16:03
|
 |
|
Re: Display problem with Splitter, GLCtrl and MenuBar
|
 |
|
Re: Display problem with Splitter, GLCtrl and MenuBar
By: kodos on Tue, 13 May 2008 18:23
|
 |
|
Re: Display problem with Splitter, GLCtrl and MenuBar
|
 |
|
Re: Display problem with Splitter, GLCtrl and MenuBar
|
 |
|
Re: Display problem with Splitter, GLCtrl and MenuBar
By: kodos on Tue, 13 May 2008 21:03
|
 |
|
Re: Display problem with Splitter, GLCtrl and MenuBar
|
 |
|
Re: Display problem with Splitter, GLCtrl and MenuBar
By: mirek on Wed, 14 May 2008 09:10
|
Goto Forum:
Current Time: Sat May 10 00:45:05 CEST 2025
Total time taken to generate the page: 0.02891 seconds
|