Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer event question on a form
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00036971
Message ID:
00037010
Views:
39
>>>>>I have 2 timers on a page that display 2 bmp's, 1 then the other repetitively for an alternating effect. I use an @ row,col say mybmp.bmp but when the form gets hidden, an error message comes up saying row or col position is off the screen. Is there a way to prevent this?
>>>>
>>>>when you hide the form, deactivate the timers.
>>>
>>>Ah-ha, how is this done, couldn't find help on that topic.
>>
>>Timer.Enabled=.F.
>>BTW, it's much better to use Image control with Picture property alternated by Timer.
>
>Thanks I got it to work correctly with the Timer1.Enabled=.F. method but I did not know what you meant with the "Image control with Picture property alternated by Timer."

Provided the bitmaps are the same size, you could also use the PICCLIP control as the source for the image. This will allow you to store the necessary bitmaps in one file. In order to change pictures you simply need to increment the GraphicCell index. You will, however, need to use another control (like HWND) to display the picture.

George
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform