'How to create an edit controls with transparent background?

While reading the AutoHotkey docs i could find these commands: WinSet, Transparent WinSet, Transcolor

WinSet, Transparent makes the control disappear.

WinSet, Transcolor makes the control background transparent, however if the GUI has any other color than default, it causes glitches in the text.

Example:

Gui, Color, 0
Gui, Add, Edit, w200 h30 hWndTest, Test
Gui, Show, w400 h200
Return


F2::
WinSet, Transparent, , ahk_id %Test%
Return

F3::
WinSet, Transcolor, ffffff, ahk_id %Test%
Return

Would like to ask if someone knows how to create an edit control with background transparent without 'glitches'?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source