Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rewinding Through Records
Message
From
18/05/1998 08:10:46
 
 
To
17/05/1998 11:31:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00099920
Message ID:
00100079
Views:
25
Thanks for the ideas and code. I decided to work with the timer control solution which worked okay, but not perfectly. By placing my command.click code in the timer.event I got some unpredictable results depending on the duration of the timer.interval. To smooth out the movement I gave a default interval of 1000 to slow down the initial firing of the timer.event. This allowed the command.click event to fire properly if the button press had been a legitimate click rather than a hold. If the mouse was being held I then reassigned the timer.interval to 300 in the timer.event and called a seperate SKIP / SKIP -1 procedure to move through the records. In the command.click event (which fires after the mouse button has been released) I then switched the interval back to 1000 and the called the SKIP / SKIP -1 procedure with a logical switch to only run if the mouse had not been held.

The net result is single forward or backward movement on the click of the command buttons, and if the mouse is being held, a brief pause followed by movement through the records of about 3 per second. Very clean and the button appears pressed.

DRE
Previous
Reply
Map
View

Click here to load this message in the networking platform