Aero: How to draw solid (opaque) colors on glass?

Seems to work OK for me. With the lack of a full code example I’m assuming you’ve got your compositing mode wrong. public void RenderGdiPlus() { List<string> colors = new List<string>(new string[] { “000000”, “ff0000”, “00ff00”, “0000ff”, “ffffff” }); List<string> alphas = new List<string>(new string[] { “00”, “01”, “40”, “80”, “c0”, “fe”, “ff” }); Bitmap … Read more

Windows Aero: What color to paint to make “glass” appear?

Color fillColor = Color.FromArgb(0, 0, 0, 0); //(a, r, g, b) e.Graphics.FillRectangle(new SolidBrush(fillColor), e.ClipRectangle); This is actually rather amusing. It means that you are drawing something completely transparent – so this changes absolutely nothing! 🙂 Guess: if black (0,0,0) should mean “glass”, how about drawing (1,1,1) to get (almost) black?

Override default styling in WPF TextBox, based on PresentationFramework.Aero

It seems to work if you put the Style as a lower-level resource, instead of in the same ResourceDictionary: <Grid xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”> <Grid.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source=”/PresentationFramework.Aero, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=MSIL;component/themes/aero.normalcolor.xaml”/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Grid.Resources> <Border BorderBrush=”Blue” BorderThickness=”3″> <Border.Resources> <Style TargetType=”{x:Type TextBox}” BasedOn=”{StaticResource {x:Type TextBox}}”> <Setter Property=”Margin” Value=”2″ /> <Setter Property=”Padding” Value=”2″ /> </Style> </Border.Resources> <TextBox … Read more

How do you set the glass blend colour on Windows 10?

Since GDI forms on Delphi don’t support alpha channels (unless using alpha layered windows, which might not be suitable), commonly the black color will be taken as the transparent one, unless the component supports alpha channels. tl;dr Just use your TTransparentCanvas class, .Rectangle(0,0,Width+1,Height+1,222), using the color obtained with DwmGetColorizationColor that you could blend with a … Read more

Borderless Window Using Areo Snap, Shadow, Minimize Animation, and Shake

After using Spy++ to inspect Steam’s window (its window styles, how it replies to window messages) and trying to match everything it does, combined with the DWMAPI calls from this C# borderless window behavior, I believe I figured it out. To hide the window’s border, handle the WM_NCCALCSIZE message in your WindowProc: case WM_NCCALCSIZE: { … Read more

Rendering controls on glass: Solution found, needs double-buffering/perfecting

Here is a version with much less flickering, still not perfect though. public class GlassControlRenderer : NativeWindow { private Control Control; private Bitmap Bitmap; private Graphics ControlGraphics; private object Lock = new object(); protected override void WndProc(ref Message m) { switch (m.Msg) { case 0x14: // WM_ERASEBKGND this.CustomPaint(); break; case 0x0F: // WM_PAINT case 0x85: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)