civilcalc Posted February 18, 2009 Share Posted February 18, 2009 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. Link to comment Share on other sites More sharing options...
TerarinK Posted February 18, 2009 Share Posted February 18, 2009 Set Window Extended Styles to $WS_EX_TRANSPARENT then you can have a transparent background while everything else stays 0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E Link to comment Share on other sites More sharing options...
civilcalc Posted February 18, 2009 Author Share Posted February 18, 2009 Set Window Extended Styles to $WS_EX_TRANSPARENT then you can have a transparent background while everything else staysCan you give me an example with a few buttons? I tried that and it just makes the border disappear. Link to comment Share on other sites More sharing options...
TerarinK Posted February 18, 2009 Share Posted February 18, 2009 look at http://www.autoitscript.com/forum/index.php?showtopic=89702Also use the search to look under transparent 0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E Link to comment Share on other sites More sharing options...
civilcalc Posted February 18, 2009 Author Share Posted February 18, 2009 look at http://www.autoitscript.com/forum/index.php?showtopic=89702Also use the search to look under transparentThankyou very much, I will look over this now. Link to comment Share on other sites More sharing options...
TerarinK Posted February 18, 2009 Share Posted February 18, 2009 Found one better to use for makiing the whole gui transparent then selectively choosing all the things inside the gui to become visible check outhttp://www.autoitscript.com/forum/index.php?showtopic=60400 0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E Link to comment Share on other sites More sharing options...
zac23 Posted February 18, 2009 Share Posted February 18, 2009 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now