Damein Posted April 17, 2012 Share Posted April 17, 2012 So I have this GUI that is set to be slightly transparent, and I have a slider control inside of it. The problem is, the slider control looks way out of place because its background is white. And even if I set it to gray or something it doesn't look right. Now, obviously thats because the GUI is transparent. So is there anyway to get the same effect or something to make the slider look the same? Here's the section with the GUI. Just copy/paste and you can run it. #include <GUIConstantsEx.au3> #include <ButtonConstants.au3> #include <WindowsConstants.au3> #include <GDIPlus.au3> #Include <WinAPI.au3> #include <array.au3> #include <Constants.au3> _FixRightNowStatus() Func _FixRightNowStatus() ;~ GuiSetState(@SW_DISABLE, $RightNowGUI) $FixStatusGUI = GUICreate("FixRightNow", 150, 300, -1,-1, BitOR($WS_POPUP,$WS_BORDER)) GuiSetFont(13) GUICtrlSetDefColor(0xFFFFFF) GUISetBkColor(0x000000) GuiCtrlCreateLabel("Right Now",38,10,200,50) $FixRightNowStatus = GuiCtrlCreateLabel("Test",10,200) GuiCtrlSetFont(-1,7.8) GuiCtrlCreateLabel("Temperature",30,230,200,40) GuiCtrlCreateLabel("73" & "°F",60,250,200,30) GuiCtrlCreateLabel("Extended Info",47,280,70,15) GUICtrlSetTip(-1, "Test extended") GuiCtrlSetFont(-1,7) $AlignmentSliderForRightNow = GUICtrlCreateSlider(20, 160, 100, 20) GUICtrlSetBkColor(-1, 0xFFFFFF) GUICtrlSetLimit(-1, 150, 0) $FinishedRightNowFix = GuiCtrlCreateButton("Done", 45,100) WinSetTrans($FixStatusGUI,"",200) GuiSetState() EndFunc While 1 Sleep(10) WEnd Most recent sig. I made Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic Link to comment Share on other sites More sharing options...
Damein Posted April 17, 2012 Author Share Posted April 17, 2012 Nevermind... after digging into the Help file, without thinking about it before hand I found it. For future reference: Adding: $WS_EX_TRANSPARENT to the extendedstyle does the trick. Most recent sig. I made Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic Link to comment Share on other sites More sharing options...
Skitty Posted April 17, 2012 Share Posted April 17, 2012 Nevermind... after digging into the Help file, without thinking about it before hand I found it. For future reference: Adding: $WS_EX_TRANSPARENT to the extendedstyle does the trick. Ah, I was about to post that, and you can also just do this as well. #include <WindowsConstants.au3> _FixRightNowStatus() While 1 Sleep(10) WEnd Func _FixRightNowStatus() ;~ GuiSetState(@SW_DISABLE, $RightNowGUI) $FixStatusGUI = GUICreate("FixRightNow", 150, 300, -1, -1, BitOR($WS_POPUP, $WS_BORDER)) GUISetFont(13) GUICtrlSetDefColor(0xFFFFFF) GUICtrlSetDefBkColor(0x000000) GUISetBkColor(0x000000) GUICtrlCreateLabel("Right Now", 38, 10, 200, 50) $FixRightNowStatus = GUICtrlCreateLabel("Test", 10, 200) GUICtrlSetFont(-1, 7.8) GUICtrlCreateLabel("Temperature", 30, 230, 200, 40) GUICtrlCreateLabel("73" & "°F", 60, 250, 200, 30) GUICtrlCreateLabel("Extended Info", 47, 280, 70, 15) GUICtrlSetTip(-1, "Test extended") GUICtrlSetFont(-1, 7) $AlignmentSliderForRightNow = GUICtrlCreateSlider(20, 160, 100, 20) ;GUICtrlSetBkColor(-1, 0xFFFFFF) GUICtrlSetLimit(-1, 150, 0) $FinishedRightNowFix = GUICtrlCreateButton("Done", 45, 100) WinSetTrans($FixStatusGUI, "", 230) GUISetState() EndFunc ;==>_FixRightNowStatus 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