Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can VFP make a fancy screen saver?
Message
 
To
01/01/1999 20:58:05
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00172121
Message ID:
00172134
Views:
53
Hi Justok,

>but how to make a mix image show with timer control change into next
>image?! Or any tools are suggested to use!?

YOu can do something like this in VFP. I'd only use one timer that fires in a small interval like 25ms or 50ms. Every picture would be an object that provides some additional methods, like a simple Do() method that moves the image in the desired direction. The timer would manage a collection of such images and fire the Do() method in certain intervals that might be different for any picture.

While you can do something like this in VFP, you might check out VC++ for this type of application, because VFP is not very fast on images and might cause troubles when you have a lot of them. After you moved an image you should call the Draw() method of the form or _SCREEN in order to repaint the image at the new position. Otherwise, VFP would draw it later and the motion looks abruptly.

>Another question, what is the structure for (.Scr) Screen saver type!?
>Can I make it directly!? Thanks!

It's a special sort of EXE file that provides additional information and entry points. Without a C wrapper it's impossible to generate a screen saver in VFP and even if you could, it would only be a work around. If you want to create a real Windows screen saver you better check out VC++.

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform