diff mde/gui/widget/ParentContent.d @ 158:f132e599043f

Re-enabled raising floating widgets, by clicking frame; disabled attempt at immediate language reloading for popup-button widgets. Enabling window raise on hover is simple now (make an option?), clicking on a sub-widget won't raise (bug).
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 24 Apr 2009 17:35:53 +0100
parents 4e8819b65882
children 2476790223b8
line wrap: on
line diff
--- a/mde/gui/widget/ParentContent.d	Wed Apr 22 10:35:15 2009 +0200
+++ b/mde/gui/widget/ParentContent.d	Fri Apr 24 17:35:53 2009 +0100
@@ -61,7 +61,19 @@
 	w = mw;
 	h = mh;
     }
-    
+    /+
+    override bool setup (uint n, uint flags) {
+	if (!(flags & 3)) return false;	// string or renderer (and possibly font) changed
+        wdim omw = mw, omh = mh;
+        adapter.getDimensions (mw, mh);
+        if (omw != mw || omh != mh) {
+	    w = mw;
+	    h = mh;
+	    return true;
+	}
+	return false;
+    }
+    +/
     override IContent content () {
         return content_;
     }
@@ -113,6 +125,7 @@
         if (omh != mh)
             parent.minHChange (this, mh);
     }
+    
     bool pushed = false;
     IRenderer.TextAdapter adapter;
     Content content_;