Szhlopp Posted July 18, 2008 Share Posted July 18, 2008 If I use GDIplus to draw a rectangle. How do I delete this rectangle? I can use the clear function but it makes the whole screen go black. Thanks! RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
BrettF Posted July 18, 2008 Share Posted July 18, 2008 My crystal ball is unable to see your code... Its a little cloudy today. muttley Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Szhlopp Posted July 18, 2008 Author Share Posted July 18, 2008 (edited) My crystal ball is unable to see your code... Its a little cloudy today. muttley meh If I just want to delete the rectangle. How would I do it? Yes I can use "EEEEEE" as the background color on a clear. But if I have controls on the forum I have to put my mouse over them again the see them. I want to be able to functionally call something like this up. And when ever I want be able to just delete it with any controls on the forum not being effected and the background color the same. expandcollapse popup#include <gdiplus.au3> #include <GUIConstants.au3> ; _GDIPlus_Startup() $mygui = GUICreate("tester", 400, 400) $hWnd = WinGetHandle("tester") GUISetState() ;WinSetTrans($hWnd, "", 50) $hGraphic = _GDIPlus_GraphicsCreateFromHWND ($hWnd) $hBrush1 = _GDIPlus_BrushCreateSolid(0xFF999999) _GDIPlus_GraphicsFillRect($hGraphic, 10, 10, 50, 50, $hBrush1) while 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Edited July 18, 2008 by Szhlopp RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
Richard Robertson Posted July 19, 2008 Share Posted July 19, 2008 A rectangle isn't an object. It's a set of pixels that have been sent to the hardware after some software processing. The only way to delete them is to repaint the area you originally covered. 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