Author: manolo
Date: 2012-05-18 07:02:58 -0700 (Fri, 18 May 2012)
New Revision: 9529
Log:
Fixed sub-window creation under WIN2 for group-relative coordinates.

Modified:
   branches/branch-3.0/src/fltk3/win32.cxx

Modified: branches/branch-3.0/src/fltk3/win32.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/win32.cxx     2012-05-18 13:18:58 UTC (rev 
9528)
+++ branches/branch-3.0/src/fltk3/win32.cxx     2012-05-18 14:02:58 UTC (rev 
9529)
@@ -1544,6 +1544,8 @@
   int showit = 1;
 
   if (w->parent()) {
+    xp += w->parent()->dx_window();
+    yp += w->parent()->dy_window();
     style |= WS_CHILD;
     styleEx |= WS_EX_WINDOWEDGE | WS_EX_CONTROLPARENT;
     parent = fl_xid(w->window());

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to