qwert Posted January 25, 2012 Share Posted January 25, 2012 I had the bright idea to place some rich edit text on top of a graphic. Technically, it works ... but it flashes terribly when scrolled ... and even a little when typing into the field. I've tried placing a white rectangle under the text, but that didn't help. Here's my test script and the graphic file. If you place some paragraphs from www.lipsum.com into the field and then use the scroll bar, the flashing is dramatic.; ; Test of Rich Text on graphic ; #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GuiRichEdit.au3> #Include <GuiScrollBars.au3> #include <ScrollBarConstants.au3> $GUI=GUICreate("Rich Text On Graphic",900,800,60,60);,$WS_POPUP,$WS_EX_LAYERED+$WS_EX_TOOLWINDOW) GUICtrlCreatePic(@ScriptDir & "\GraphicBackground.bmp",40,40,800,700) GUICtrlSetState(-1,$GUI_DISABLE) $MainRich = _GUICtrlRichEdit_Create($GUI, "", 90, 90, 680, 600, BitOR($ES_MULTILINE, $WS_VSCROLL), 0x20) ; $ES_READONLY, $ES_WANTRETURN, _GUICtrlRichEdit_SetBkColor(-1,0xFFFFFF) _GUICtrlRichEdit_SetFont($MainRich, 14, "Franklin Gothic Medium") _GUIScrollBars_ShowScrollBar($MainRich, $SB_VERT, True) GUISetState() While 1 $nMsg = GUIGetMsg() Select Case $nMsg = $GUI_EVENT_CLOSE _GUICtrlRichEdit_Destroy($MainRich) Exit EndSelect WEndIs there some setting or technique that can make it stable?Thanks for any help or advice.GraphicBackground.bmp.ZIP Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted January 26, 2012 Share Posted January 26, 2012 Did you try Googling on it?I found a few interesting resultsRichEdit with transparent background in Delphi? Hell yes!See through Rich Edit controlTry porting one to AutoIt and see how it goes. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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