Sign in to follow this  
Followers 0
Thornhunt

flickering

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0