« Return to Thread: Speed Counters

RE: Speed Counters

by Thomas Fitch :: Rate this Message:

Reply to Author | View in Thread

Hi Michael,

I tested the code and you're correct. It doesn't work. The problem is that I
tried to port over a picture variable object solution to a button object and
the On Clicked form event works differently for the button object. It
doesn't fire until after the mouse button comes up, so you never have
hb_UpTime=1 in your On Timer code.

The method I suggested isn't going to work with a button. I do have another
suggestion though... use a picture variable. :-)

I outline it in this tech tip:

http://kb.4d.com/search/assetid=75706

The tech tip discusses how to implement drag and drop in SVG images but you
can use the same idea to implement a speed counter. Use the Mouse Enter,
Mouse Leave, and On Clicked events of the picture variable to manage the
Timer and then handle the incrementing via the On Time form event.

Sorry for the confusion.

Kind Regards,

Tom Fitch
Technical Services Team Member
4D, Inc.


**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Register for 4D Summit 2009 Today
Early Bird Pricing Ends August 28th - http://www.4D.com/summit

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************


 « Return to Thread: Speed Counters