Jump to content

Main GUI [Solid] - Child GUI [transparent] < click through Child GUI


aa2zz6
 Share

Recommended Posts

The following is a GUI and a child GUI. The main GUI is solid and the child GUI is transparent. I needed to make some type of object transparent so I could click through it for a project of mine. I included an _IECreateEmbedded() browser for testing purposes. Hope it helps..

#include <WindowsConstants.au3>
#include <IE.au3>
HotKeySet("{ESC}", "Terminate")

;;==============================================================================;;
;;===============================GUI DESIGN======================================;;
;;==============================================================================;;
;;==============================================================================;;

$width = 800
$height = 625

$hMain = GUICreate("COK", 1015, 585, @DesktopWidth / 2 - $width / 2, @DesktopHeight / 2 - $height / 2, _
$WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
$wPos = WinGetPos($hMain)
GUISetState(@SW_SHOW,$hMain)

Local $oIE = _IECreateEmbedded()
GUICtrlCreateObj($oIE, 0, -45, $width + 6, $height + 0)
_IENavigate($oIE, "https://www.yahoo.com/")


$Child_GUI = GUICreate("Child", 200, 200, 380, 250, $WS_POPUP,BitOR($WS_EX_MDICHILD,$WS_EX_TRANSPARENT),$hMain)
WinSetTrans($Child_GUI, "", 200)
GUISetBkColor(0xfffaf0, $Child_GUI)
GUISetState(@SW_SHOW, $Child_GUI)
;;==============================================================================;;
;;===============END==============GUI DESIGN====================================;;
;;==============================================================================;;
;;==============================================================================;;

While 1
sleep(1000)
WEnd

Func Terminate()
    Exit
EndFunc   ;==>Terminate

 

Edited by aa2zz6
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...