Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with stopwatch
Message
From
24/07/1999 18:15:04
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00245287
Message ID:
00245765
Views:
15
>I am using the built-in digital stopwatch on a form. The problem is whenever I add code to the stopwatch, the stopwatch display does not update hours, minutes, seconds. It stays on 00:00:00.
>
>I have the start, stop and reset buttons working. But I am trying to add code so that when 1 minute passes I add a colored border around the stopwatch display. Then after another minute, I change the color of the border and so on.
>
>I added my code to the stopwatch updatedisplay event, refresh event, the timer event within the stopwatch container, but all of them freeze the stopwatch display on zeroes.
>
>Any idea where I can add my code?
>IF THIS.lblminutes = "01"
> THIS.BorderColor = RGB(255,255,0)
> THIS.BorderWidth = 2
>ENDIF

Dodefault()

The stopwatch timer event is probably written in the timer subclass you're using. The default behavior of the base class occurs each time, but the custom code in the parent class does not get called if you override the method. You have to call it yourself.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform