erifash Posted September 8, 2006 Share 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! 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 Link to comment Share on other sites More sharing options...
GaryFrost Posted September 8, 2006 Share 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 SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
erifash Posted September 8, 2006 Author Share Posted September 8, 2006 No, on a graphic control: GUICtrlCreateGraphic(). What do I need to do in order to clear it? 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 Link to comment Share on other sites More sharing options...
GaryFrost Posted September 8, 2006 Share 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 SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
lod3n Posted September 8, 2006 Share Posted September 8, 2006 What do you mean by "Clear" it? [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
GaryFrost Posted September 8, 2006 Share Posted September 8, 2006 What do you mean by "Clear" it?Don't think there is a clear, just draw over it. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
erifash Posted September 9, 2006 Author Share Posted September 9, 2006 Don't think there is a clear, just draw over it.Okay then. Thanks! 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 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