UnKnOwned Posted April 25, 2013 Share Posted April 25, 2013 Hello, I would like to have a background image for my gui & have the background for the edit control box to be transparent so the image shows through. This is what I have so far. Thanks in advance. $MAIN = GUICreate("Terminal", 620, 330, 192, 114) GUICtrlCreatePic('image.jpg', 0, 0, 620, 330) GUICtrlSetState(-1, $GUI_DISABLE) $CMD_WINDOW = GUICtrlCreateEdit('', 10, 10, 600, 289, BitOR($ES_AUTOVSCROLL, $ES_AUTOHSCROLL, $ES_READONLY, $WS_VSCROLL)) GUICtrlSetFont($CMD_WINDOW, 9, 800, 0, "Arial") GUICtrlSetColor($CMD_WINDOW, 0x00FF00) GUICtrlSetBkColor($CMD_WINDOW, 0x000000) $INPUT_LINE = GUICtrlCreateInput('', 10, 304, 600, 20) GUICtrlSetFont($INPUT_LINE, 9, 800, 0, "Arial") GUICtrlSetColor($INPUT_LINE, 0x00FF00) GUICtrlSetBkColor($INPUT_LINE, 0x000000) GUISetState(@SW_SHOW) Link to comment Share on other sites More sharing options...
PhoenixXL Posted April 25, 2013 Share Posted April 25, 2013 You cannot have an edit control with a WinProc to be clear transparent, the windows carries on its processing under the hood and text would be overlapped upon user drawing.I'm already fed up trying on the edit control. A richedit control would do look My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
PhoenixXL Posted April 25, 2013 Share Posted April 25, 2013 Here is an example for you - it will work till the link is valid#include-once #include <GuiRichEdit.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Main() Func Main() Local $hGui, $hRichEdit, $iMsg $hGui = GUICreate("Example (" & StringTrimRight(@ScriptName, 4) & ")", 320, 350, -1, -1, 0, $WS_EX_COMPOSITED) $hRichEdit = _GUICtrlRichEdit_Create($hGui, "This is a a transparent Rich Edit Control." & @CRLF & _ "Press Esc To Exit", 10, 200, 300, 100, BitOR($ES_MULTILINE, $ES_AUTOVSCROLL), $WS_EX_TRANSPARENT) $File = @ScriptDir & "\cute.jpg" If Not FileExists($File) Then ToolTip("Please Wait while the Image is downloaded") InetGet("http://www.picgifs.com/graphics/c/cute/graphics-cute-920618.jpg", $File) ToolTip("") EndIf GUICtrlCreatePic($File, 0, 0, 320, 350) GUISetState() While True Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd _GUICtrlRichEdit_Destroy($hRichEdit) GUIDelete() EndFunc ;==>Main PlayHD 1 My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
PlayHD Posted April 25, 2013 Share Posted April 25, 2013 or take a look here My UDF : _WinShake, _WinSplitMy Apps : Google Guitar Bot, PuzzleGameDesign Gui : Interesting Tabs Design, RBox Project (abandoned), Animated Gui on Exit 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