Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving an object after a form is moved.
Message
 
 
To
11/09/2002 15:13:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00699457
Message ID:
00699534
Views:
17
Alan,

A clever use of the fact that a timer won't fire while VFP is off handling events like moving a form!

>Yep, you got me on that one. Ok then, I just tried this out, and it seems to work ok:
>
>Put a disabled timer on the form. Set the timer's interval to around 250. In the TimerEvent, first disable the timer, and then add your code to move the Character.
>
>In the Form's moved() event, do this:
>
>
This.Timer1.Enabled = .T.
>This.Timer1.Reset
>
>
>The TimerEvent will fire when you stop moving the form - regardless whether you let go of the mouse button.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform