Hi -
I'm trying to apply transparency and gradient effect (to the bottom) to a GUI at the same time. I've searched the forum and could found some topics about my issue - but non of them seems to combine both. Playing around with _WinAPI_SetLayeredWindowAttributes() and PNG images (bad for different screen resolutions) was good to imitate gradient effect - WinSetTrans() helped my to set transparency. How can both be combined?
Here's what I started with (w/ transparency only):
#include <GUIConstantsEx.au3>
#include <GUIEdit.au3>
#include <WindowsConstants.au3>
Local $hGUI = GUICreate("TEST", @DesktopWidth, @DesktopHeight - 100, 0, 0, $WS_POPUP)
Local $hEdit1 = GUICtrlCreateEdit("", 100, 100, 100, 100, $ES_READONLY, $WS_EX_TRANSPARENT)
_GUICtrlEdit_AppendText($hEdit1, "Text1" & @CRLF)
_GUICtrlEdit_AppendText($hEdit1, "Text2" & @CRLF)
_GUICtrlEdit_AppendText($hEdit1, "Text3" & @CRLF)
GUICtrlSetBkColor($hEdit1, 0x0F4F8F)
GUICtrlSetColor($hEdit1, 0x4F8FCF)
GUICtrlSetFont($hEdit1, 20.0, 400, 0, "Courier New", 2)
GUISetBkColor(0x0F4F8F, $hGUI)
WinSetTrans($hGUI, "", 200)
GUISetState(@SW_SHOW, $hGUI)
Local $aMsg
While 1
$aMsg = GUIGetMsg(1)
Switch $aMsg[1]
Case $hGUI
Switch $aMsg[0]
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
EndSwitch
WEnd
GUIDelete($hGUI)
Is there a solution?
-supersonic.