Thornhunt Posted August 11, 2007 Share Posted August 11, 2007 ok these past few days iv been posting loads of questions .. and i thank those who have helped me. so once again i have another question . how do i stop my buttons flickereing #include <GUIConstants.au3> GUICreate("Spybot Compiled", 500, 500) ; will create a dialog box that when displayed is centered $background = GUICtrlCreatePic ("Untitled-1.jpg", 0, 0, 500, 500) ; background GuiCtrlSetState(-1,$GUI_DISABLE) GUISetState (@SW_SHOW) ; will display an empty dialog box $clicktostart = GUICtrlCreateLabel ("Click to start SpyBot Compiled ", 55, 41, 175) GUICtrlSetFont($clicktostart, 9, 700) GUICtrlSetBkColor($clicktostart, $GUI_BKCOLOR_TRANSPARENT) while 1 $Button1 = GUICtrlCreateButton ( " start ", 10, 40 ) ; verification button GUICtrlSetOnEvent ( $Button1, "ok" ) $Button2 = GUICtrlCreateButton ( " exit ", 10, 80 ) ; verification button GUICtrlSetOnEvent ( $Button2, "close" ) WEnd oo btw this isnt all the code Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D Link to comment Share on other sites More sharing options...
narayanjr Posted August 11, 2007 Share Posted August 11, 2007 move the "GUICtrlCreateButton" lines out of the while loop what your doing is constantly making new buttons thats why they flicker your making them non stop so they look like they are flickering but its just a new one being created Link to comment Share on other sites More sharing options...
Thornhunt Posted August 11, 2007 Author Share Posted August 11, 2007 o rite lol .. thanks Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D 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