Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving an object after a form is moved.
Message
From
11/09/2002 15:13:16
 
 
To
11/09/2002 14:56:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00699457
Message ID:
00699477
Views:
16
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.

Alan

>the mouseup() and Mousedown() events only fire if the user clicks on the body of the form. They do not fire if the user clicks on the title bar to move the form.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform