Discussion:
wxGTK-3.0.0: Problem with "jumping" AUI panes
Marco DeFreitas
2014-02-03 21:37:39 UTC
Permalink
I am transitioning to wxGTK-3.0.0 and I am noticing a problem with
From the View menu, select "Create Text Control".
Move the newly created floating window off to the side of the main frame.
From the View menu, I again select "Create Text Control".

This does indeed create a new text control, but also makes the previous one
(that was moved off to the side) jump back to where is was originally
created.

Can anyone verify that this is a bug?

Should I enter it in the Trac system?

Thanks,
Marco
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-02-04 15:25:16 UTC
Permalink
On Mon, 3 Feb 2014 13:37:39 -0800 (PST) Marco DeFreitas wrote:

MD> I am transitioning to wxGTK-3.0.0 and I am noticing a problem with
MD> "jumping" floating panes. This can be reproduced in the auidemo as follows:
MD>
MD> >From the View menu, select "Create Text Control".
MD> Move the newly created floating window off to the side of the main frame.
MD> >From the View menu, I again select "Create Text Control".
MD>
MD> This does indeed create a new text control, but also makes the previous one
MD> (that was moved off to the side) jump back to where is was originally
MD> created.
MD>
MD> Can anyone verify that this is a bug?

Yes, I see it too. The following patch, which I already used to fix the
docking bug, fixes it for me however:

diff --git a/src/gtk/minifram.cpp b/src/gtk/minifram.cpp
index cc897e7..6b6acad 100644
--- a/src/gtk/minifram.cpp
+++ b/src/gtk/minifram.cpp
@@ -316,8 +316,6 @@ gtk_window_motion_notify_callback( GtkWidget *widget, GdkEventMotion *gdk_event,
gdk_window_get_origin(gtk_widget_get_window(widget), &org_x, &org_y);
x += org_x - win->m_diffX;
y += org_y - win->m_diffY;
- win->m_x = x;
- win->m_y = y;
gtk_window_move( GTK_WINDOW(win->m_widget), x, y );

return TRUE;


Could you please test with this patch and let us know if you find any
problems?

TIA,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Marco DeFreitas
2014-02-04 21:46:11 UTC
Permalink
VZ> Could you please test with this patch and let us
VZ> know if you find any problems?

I tested it and it looks like docking/undocking is ok. The jumping windows
issue is gone. The disappearing scrollbar issue on wxAuiNotebook is still
there, however.

Thanks,
Marco
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...