Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Showing animation while sending e-mail
Message
 
 
To
23/04/2002 10:21:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00647673
Message ID:
00648135
Views:
31
>Nadya,
>
>Glad you've worked it out. What was the fix? Is it the additional parameters you pass to the Play() method?
>

I think, UseTimer = .f. before recreate() method was the culprit. I also moved open and play methods after setting oAnimation.visible=.t. by Alexander's suggestion.

Alexander designed really cool controls and all by using Windows API functions. Great work!


>>Hi Daniel,
>>
>>I had an exchange in private with Alexander and his last suggestion helped:
>>
>>Here is the final code, which is now working and showing animation correctly (I'm using his class and show animation in the status bar):
>>
>>      loControl.UseTimer = .f.
>>      loControl.Recreate()
>>      lcAviFile = addbs(justpath(fullpath('CommCtrl.vcx')))+'AVIs\SndMail2.avi'
>>      .oAnimation = m.loControl
>>      .oAnimation.visible = .t.
>>      loControl.open(m.lcAviFile)
>>      loControl.Play( 0, -1, -1)
>>
>>
>>Alexander, jump into this thread for your stars portion :)
>>
>>Thanks a lot to both of you.
>>
>>>Nadya,
>>>Here are a few things you could try:
>>>
>>>- make sure _VFP.AutoYield is .T.
>>>- instantiate the animation control *before* you start processing. Display a generic AVI file to start and then simply change the caption and AVI file depending on the process. If you do it this way, the AVI file should initially play. Step through the code to locate the line of code that causes the animation control to stop responding.
>>>- remove all WAIT WINDOWS. I would rather change the caption of the animation control to tell the user what's happening than mixing animation form, WAIT WINDOWs and SET MESSAGEs. I'm not sure if it's going to help, but I've seen weird things occasionally with the WAIT command.
>>>- make sure you don't have any inkey() functions somewhere
>>>- what's happening in the parent method when you call DODEFAULT()?
>>>
>>>HTH
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform