ecere/gui; installer: Transparent list box tweaks
authorJerome St-Louis <jerome@ecere.com>
Thu, 8 Mar 2012 05:20:24 +0000 (00:20 -0500)
committerJerome St-Louis <jerome@ecere.com>
Thu, 8 Mar 2012 05:20:24 +0000 (00:20 -0500)
ecere/src/gui/controls/ListBox.ec
ecere/src/gui/controls/PathBox.ec
installer/src/installer.ec

index dbbc1b2..24e89e3 100644 (file)
@@ -2043,6 +2043,7 @@ private:
       Font font = fontObject;
       Font boldFont = this.boldFont.font;
 
+
       // Draw gray grid
       if(style.alwaysEdit && style.fullRowSelect)
       {
@@ -2323,7 +2324,7 @@ private:
                   foreground = this.foreground;
                }
 
-               if(!isActive && dataDisplayFlags.selected && style.alwaysEdit && field.editable)
+               if(!isActive && dataDisplayFlags.selected && style.alwaysEdit && field.editable && opacity)
                {
                   surface.Clip(null);
                   surface.SetBackground(background);
index 75c1553..a37695a 100644 (file)
@@ -66,6 +66,7 @@ public class PathBox : CommonControl
 
    watch(background) { editBox.background = background; };
    watch(foreground) { editBox.foreground = foreground; };
+   watch(opacity)    { editBox.opacity    = opacity; };
 
 #if defined(__WIN32__)
    PathBox()
index 4200e03..b6380c3 100644 (file)
@@ -179,7 +179,7 @@ struct CheckItem
 
    void OnDisplay(Surface surface, int x, int y, int width, void * fieldData, Alignment alignment, DataDisplayFlags displayFlags)
    {
-      if(!displayFlags.active) displayFlags.current = false;
+      if(!displayFlags.active) { displayFlags.current = false; displayFlags.selected = false; }
       class::OnDisplay(surface, x + 22, y, width - 22, fieldData, alignment, displayFlags);
    }
 };
@@ -711,6 +711,7 @@ class Installer : Window
       parent = label1, master = this, text = $" Destination Folder", size = Size { 336, 22 }, anchor = Anchor { left = 12, top = 20, right = 12 };
       typeExpected = directory;
       browseDialog = fileDialog;
+      opacity = 0;
 
       bool NotifyModified(PathBox pathBox)
       {