Sign in to follow this  
Followers 0
civilcalc

Transparent background

7 posts in this topic

Is it possible to have a gui with a tranparent background, but to have the labels and buttons etc as they normally are? many thanks in advance.

Share this post


Link to post
Share on other sites



Set Window Extended Styles to $WS_EX_TRANSPARENT then you can have a transparent background while everything else stays


0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E

Share this post


Link to post
Share on other sites

Set Window Extended Styles to $WS_EX_TRANSPARENT then you can have a transparent background while everything else stays

Can you give me an example with a few buttons? I tried that and it just makes the border disappear.

Share this post


Link to post
Share on other sites

Found one better to use for makiing the whole gui transparent then selectively choosing all the things inside the gui to become visible check out

http://www.autoitscript.com/forum/index.php?showtopic=60400


0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E

Share this post


Link to post
Share on other sites

hey ive played around with the example a bit ive found that there has to be a window open under the tranceparent window for it to work, you could alwase through a splachimige up before the func, this is what i got

#include <GUIConstantsEx.au3>

#include <WindowsConstants.au3>

Opt('MustDeclareVars', 1)

Example1()

; example 1

Func Example1()

Local $msg

GUICreate("My GUI",200,200,-1,-1,$GUI_SS_DEFAULT_GUI ,$WS_EX_TRANSPARENT ) ; will create a dialog box that when displayed is centered

GUICtrlCreateButton("seen",5,5,50,30)

GUISetState(@SW_SHOW) ; will display an empty dialog box

; Run the GUI until the dialog is closed

While 1

$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop

WEnd

GUIDelete()

EndFunc ;==>Example1


Share this post


Link to post
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
Sign in to follow this  
Followers 0