Valuater Posted May 18, 2005 Posted May 18, 2005 (edited) this is an example. i don't want to use splash-text as it wants to create its own gui can anyone help with this display..... it worked before but not now with the beta version. CODE #include <GUIConstants.au3> GUICreate('New GUI') GUISetState() Sleep(100) For $i= 1 to 15 ; file found... diplay file# GUICtrlCreateLabel(" ", 40, 45, 120, 25); this doesn't help $i_label = GUICtrlCreateLabel(" File Number: " & $i, 40, 45, 120, 25) Sleep(50) Next For $t= 1 to 15 ; file found... diplay file# $t_label = GUICtrlCreateLabel(" ", 40, 90, 120, 25) GUICtrlSetData ( $t_label, " File Number: " & $t ); >>>>>>>> this doesn't help Sleep(50) Next GUICtrlCreateLabel(" DONE ", 40, 185, 120, 25) While 1 $msg = GUIgetMsg() Select Case $msg = $GUI_EVENT_CLOSE GUIDelete() EXIT Case Else Sleep(25) EndSelect WEnd the problem is the numbers are not readable please help. thanks Edited May 18, 2005 by Valuater
foggw Posted May 19, 2005 Posted May 19, 2005 For $t= 1 to 15; file found... diplay file# $t_label = GUICtrlCreateLabel(" ", 40, 90, 120, 25) GUICtrlSetData ( $t_label, " File Number: " & $t ); >>>>>>>> this doesn't help Sleep(50)Next<{POST_SNAPBACK}>Try moving the GUICtrlCreateLabel outside the loop.The 'label' only needs to be created once.$t_label = GUICtrlCreateLabel(" ", 40, 90, 120, 25) For $t= 1 to 15 ; file found... diplay file# GUICtrlSetData ( $t_label, " File Number: " & $t ) Sleep(50) NextBill
Valuater Posted May 19, 2005 Author Posted May 19, 2005 Try moving the GUICtrlCreateLabel outside the loop.The 'label' only needs to be created once.Bill<{POST_SNAPBACK}>Thats the trick........... thanks
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