2

Like @Teemu said I putted the <!DOCTYPE html> ant the <meta http-equiv="x-ua-compatible" content="ie=9">. Now it work with a strange behavior the GUI is not transparent but the color is clearer. So setting the Alpha channell act like reducing the value of the RGB color and not setting the transparency of the GUI.

Is there a way to have the main GUI transparent ?

The HTA GUI :

<!DOCTYPE html>
<html>
<head>

<meta http-equiv="x-ua-compatible" content="ie=9">
    <title>Test</title>

    <HTA:APPLICATION
    APPLICATIONNAME="Test"
    ID="RestoreHta"
    VERSION="1.0"
    BORDER="dialog"
    BORDERSTYLE="complex"
    INNERBORDER="no"
    SCROLL="no"
    CONTEXTMENU="no"/>

<SCRIPT Language="VBScript">

Sub Window_Onload
self.ResizeTo 300,300
End Sub


</SCRIPT>

</head>

<body style="background-color:rgba(255,0,0,0.3)">

</body>
</html>
SachaDee
  • 9,245
  • 3
  • 23
  • 33
  • 1
    Your syntax is incorrect, CSS do not use `=` for assignment. Use `:` instead, i.e.: `background-color:rgba(255,0,0,0.5)` – Terry Oct 15 '16 at 12:30
  • sorry that was a typo. The question still the same – SachaDee Oct 15 '16 at 12:40
  • 1
    Setting ` ` and `` will bring HTA closer to present, also alpha channel is available when run in IE9 mode. – Teemu Oct 16 '16 at 16:32
  • Forgot to mention, that ofcourse you will need IE9 or later installed, IE8 or former are not supporting rgba colors. – Teemu Oct 17 '16 at 06:17
  • Thanks for your help @Teemu but also the `HTA` GUI's background still 100% white (I'm on W10) – SachaDee Oct 17 '16 at 12:11
  • Works for me in Win10 + IE11, I'm getting a pink background. – Teemu Oct 17 '16 at 12:21
  • Sorry it work, but the GUI is not transparent !, Edited my question. Very strange behavior. – SachaDee Oct 17 '16 at 13:00
  • You mean the whole HTA window should be semi-transparent? Afaik, not possible with CSS. The only way to create such a window is to use `showModalDialog` and set `unadorned` to `yes` in options. – Teemu Oct 17 '16 at 13:31
  • Can you put this as answer with a small example ? Thanks – SachaDee Oct 17 '16 at 13:44

0 Answers0