ecere/gui/FormDesigner: Tweaks to avoid redundant properties being set (Window::nativ...
authorJerome St-Louis <jerome@ecere.com>
Mon, 5 Mar 2012 07:53:02 +0000 (02:53 -0500)
committerJerome St-Louis <jerome@ecere.com>
Mon, 5 Mar 2012 07:53:02 +0000 (02:53 -0500)
ecere/src/gfx/BitmapResource.ec
ecere/src/gui/Window.ec

index 6b52261..fb7e94c 100644 (file)
@@ -168,7 +168,12 @@ public:
       get { return this ? mono : false; }
    };
    property bool transparent { set { transparent = value; } get { return this ? transparent : false; } isset { return (this && !transparent) ? true : false; } };
-   property bool alphaBlend { set { alphaBlend = value; } get { return this ? alphaBlend : false; } };
+   property bool alphaBlend
+   {
+      set { alphaBlend = value; }
+      get { return this ? alphaBlend : false; }
+      isset { return alphaBlend && (!fileName || !SearchString(fileName, 0, ".png", false, true)); }
+   };
    property bool keepData { set { keepData = value; } get { return this ? keepData : false; } };
    property Bitmap bitmap { get { return this ? bitmap : null; } set { bitmap = value; if(bitmap) incref bitmap; } };
    property Window window { set { if(value) value.AddResource(this); } };
index 80a95c7..c9b922e 100644 (file)
@@ -9233,9 +9233,11 @@ public:
    property CreationActivationOption creationActivation { get { return creationActivation; } set { creationActivation = value; } };
    property bool nativeDecorations
    {
-      get { return (bool)nativeDecorations && (formDesigner || rootWindow == this); }
+      get { return (bool)nativeDecorations; }
       set { nativeDecorations = value; }
-      isset { return nativeDecorations != style.fixed; }
+#ifndef ECERE_VANILLA
+      isset { return (nativeDecorations && (rootWindow == this || (formDesigner && activeDesigner && parent == ((FormDesigner)activeDesigner.classDesigner).form.parent))) != style.fixed; }
+#endif
    };
    property bool manageDisplay { get { return (bool)manageDisplay; } set { manageDisplay = value; } };