Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Floating Image
Message
From
08/03/2000 09:38:27
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
06/03/2000 14:11:22
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00342278
Message ID:
00343239
Views:
23
>I would like to have our company logo floating around on my main app screen. Can anyone help with code to randomly but smoothly adjust the left and top properties of the image in a timer control?
>
>Thanks and God Bless,
>S. Dyke

Easy enough. You can have two sets of [top, left] pairs for your logo, the current and the destination. In a timer event, you check if they're equal, and if they're not, adjust the actual ones to come somewhat closer to the destination (which means, move the logo). Once they're close enough (i.e. the distance is smaller than the step), use some random numbers to create a new destination path. You can do it all in timer's .timer event, and it shouldn't be more than a dozen lines of code.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform