erifash 0 Posted September 8, 2006 How can I clear a graphic control besides deleting it then creating a new one? I have a program that does that and there is a lot of flickering. Thanks! Hide erifash's signature Hide all signatures My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Share this post Link to post Share on other sites
GaryFrost 15 Posted September 8, 2006 maybe this is what you mean? #include <GUIConstants.au3> GUICreate("My GUI picture",350,300,-1,-1,$WS_SIZEBOX+$WS_SYSMENU) ; will create a dialog box that when displayed is centered GUISetBkColor (0xE0FFFF) $n=GUICtrlCreatePic(@Systemdir & "\oobe\images\mslogo.jpg",50,50, 200,50) GUISetState () Sleep ( 1000 ) GUICtrlSetImage($n,"") ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Hide GaryFrost's signature Hide all signatures SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Share this post Link to post Share on other sites
erifash 0 Posted September 8, 2006 No, on a graphic control: GUICtrlCreateGraphic(). What do I need to do in order to clear it? Hide erifash's signature Hide all signatures My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Share this post Link to post Share on other sites
GaryFrost 15 Posted September 8, 2006 maybe? #include <GUIConstants.au3> GUICreate("My Draw") $graphic = GUICtrlCreateGraphic(20, 50, 100, 100) GUICtrlSetBkColor($graphic, 0xffffff) GUICtrlSetColor($graphic, 0) GUICtrlSetGraphic($graphic, $GUI_GR_COLOR, 0xff0000, 0xff0000) GUICtrlSetGraphic($graphic, $GUI_GR_PIE, 50, 50, 40, 30, 270) GUICtrlSetGraphic($graphic, $GUI_GR_COLOR, 0x00ff00, 0xffffff) GUICtrlSetGraphic($graphic, $GUI_GR_PIE, 58, 50, 40, -60, 90) GUISetState() Sleep(3000) GUICtrlSetGraphic($graphic, $GUI_GR_COLOR, 0xffffff, 0xffffff) GUICtrlSetGraphic($graphic, $GUI_GR_RECT, 0, 0, 100, 100) GUICtrlSetGraphic($graphic, $GUI_GR_REFRESH) Do $msg = GUIGetMsg() Until $msg = $GUI_EVENT_CLOSE Hide GaryFrost's signature Hide all signatures SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Share this post Link to post Share on other sites
lod3n 3 Posted September 8, 2006 What do you mean by "Clear" it? Hide lod3n's signature Hide all signatures [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Share this post Link to post Share on other sites
GaryFrost 15 Posted September 8, 2006 What do you mean by "Clear" it?Don't think there is a clear, just draw over it. Hide GaryFrost's signature Hide all signatures SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Share this post Link to post Share on other sites
erifash 0 Posted September 9, 2006 Don't think there is a clear, just draw over it.Okay then. Thanks! Hide erifash's signature Hide all signatures My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Share this post Link to post Share on other sites