Bert Posted December 17, 2005 Author Share Posted December 17, 2005 no, because I have no idea where to put "$label_[65]", nor what it means. I see $label_[50] in the Dim section, and changing 50 to 65 makes no difference. This is what I don't get. I think the only way I will get it is seeing a example. Then I can see what you are talking about. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Bert Posted December 17, 2005 Author Share Posted December 17, 2005 I'm getting closer...I figured out the second tab was in the wrong place. It needed to be like this. ; tab 2, row 1 GUICtrlCreateTabItem("Tickets 33-64") For $X2 = 1 To 8 I need to get the timer working, but I think I know how to fix that. I will post when I get it working. Thanks for your help. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Bert Posted December 18, 2005 Author Share Posted December 18, 2005 (edited) When I tested the timer, I noticed it will pick up where it left off even after I reset it. I read the instructions that were provided to me, but I'm not sure how to code it. I need the timer to reset when the reset button is pushed, and the clock start @ 0. Currently, it will pick up right where the first time the start button was pushed, along with any time that has passed. To put it simply, I need it to : start - starts the timer stop - stops the timer start - (right where I stopped it : if it shows 6 seconds, when I restart, it will start from 6 seconds, then 7 seconds...- just like a real stop watch) reset - resets everything back to 0 so the timer can be used again fresh. I hate being a nag on this, but could someone please take pity on me? I've been staring at this code for a hour, and for the life of me, I'm just confused.... For $xk = 1 To $count If $msg = $TButton_[$xk] And GUICtrlRead($Input_[$xk]) > "" Then GUICtrlSetState($TButton_[$xk], $GUI_DISABLE) GUICtrlSetState($Input_[$xk], $GUI_DISABLE) $TimerActive_[$xk] = 1 If Not StringLen(String($Timer_[$xk])) Then $Timer_[$xk] = TimerInit() ElseIf $msg = $TButton_[$xk] Then MsgBox(64, "User Error", "Please Type in a Ticket Number ", 3) EndIf If $msg = $SButton_[$xk] And GUICtrlRead($SButton_[$xk]) = "Reset" Then GUICtrlSetData($Label_[$xk], "00:00:00") GUICtrlSetData($Input_[$xk], "") GUICtrlSetData($SButton_[$xk], "Stop") EndIf If $msg = $SButton_[$xk] And GUICtrlRead($Input_[$xk]) > "" And GUICtrlRead($SButton_[$xk]) = "Stop" Then $TimerActive_[$xk] = 0 GUICtrlSetData($SButton_[$xk], "Reset") GUICtrlSetState($TButton_[$xk], $GUI_ENABLE) GUICtrlSetState($Input_[$xk], $GUI_ENABLE) ; GUICtrlSetBkColor($Label_[$xk], 0xD4D0C8) $Name = GUICtrlRead($Input_[$xk]) ; If $xk < 5 Then $Unit = $Header_1 & " " & $xk EndIf EndIf If $xk = 5 Then ExitLoop Next Edited December 18, 2005 by vollyman The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Bert Posted December 19, 2005 Author Share Posted December 19, 2005 anyone? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
seandisanti Posted December 19, 2005 Share Posted December 19, 2005 anyone?could i see a full listing of your most recent code? the start/stop thing will be an easy fix. 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