Window partially transluscent

  1. 2 weeks ago

    Stefan A

    Feb 11 Pre-Release Testers, Xojo Pro Austria, Tirol
    Edited 2 weeks ago

    Does anyone has a solution for Win and Mac to make windows partially transluscent like Windows and MacOS do?

    Like here the grey left side is transluscent and blurry:

    -image-

  2. Michel B

    Feb 11 Pre-Release Testers, Xojo Pro

    Sam Rowlands has provided declares for the Mac side. Search for "vibrancy".

    Perhaps Julian Samphire has the equivalent for Windows.

    I don't recall seeing anything from Christian, but he may have produced an MBS plugin for that.

  3. Dale A

    Feb 11 San Diego, California, USA
    Edited 2 weeks ago

    A while back, Paul LeFebvre released a WinAPILib project that had a method for setting a window's opacity. It's still available at WinAPILib at GitHub .

  4. Julian S

    Feb 12 Pre-Release Testers, Xojo Pro UK

    This is an undocumented call in win32 based on DwmSetWindowAttribute but extended for use in UWP, there are plenty of issues with it, some of which might need to be addressed by William in the framework (e.g. transparent text, opaque label backgrounds, window borders/dropshadow) so it might never be usable in Xojo unless its designed into the framework. So many unknowns with this that I don't really know as I've not played with it enough to find out and as its not on my interest list I probably won't be doing so in the near future. Let us know how you get on if someone looks into it further?

    https://www.dropbox.com/s/b7fi5xzfoy831gl/TestBlurWindow.xojo_binary_project?dl=0

    The code was lifted from various places and massaged into a xojo version, see here for more info:
    http://undoc.airesoft.co.uk/user32.dll/SetWindowCompositionAttribute.php
    http://undoc.airesoft.co.uk/user32.dll/GetWindowCompositionAttribute.php
    https://gist.github.com/ysc3839/b08d2bff1c7dacde529bed1d37e85ccf
    https://github.com/ChaosinaCan/AudioPipe/blob/master/AudioPipe/Extensions/WindowAccentExtensions.cs
    https://gist.github.com/jimbojetset/f6a30acb46eeff9a602639e566e7a048
    http://vhanla.codigobit.info/2015/07/enable-windows-10-aero-glass-aka-blur.html
    https://github.com/xceedsoftware/wpftoolkit/issues/1168

or Sign Up to reply!