Solved

want to show 3 pictures in frame each for certain time

Posted on 1998-09-01
5
195 Views
Last Modified: 2010-04-30
want to be able to show each of 3 (0r more) pictures in a frame for variable time length then go back to beginning and start over. Need to have the routine stop if any key or mouse movement is detected. Please use timer in example and be specific as to what code is put in what area.
0
Comment
Question by:rfb
  • 3
  • 2
5 Comments
 
LVL 2

Expert Comment

by:percosolator
ID: 1432424
Try using the picture clip control.  It will let you insert multiple images and iterate through them.  Moderately simple to use, too.

I've seen it used for animation sequences...
0
 
LVL 1

Author Comment

by:rfb
ID: 1432425
my question requests the use of the timer control.
0
 
LVL 2

Expert Comment

by:percosolator
ID: 1432426
In conjunction with the timer control.....

Like this sample code
--------------------------


Private Sub Timer1_Timer()
    Static i As Integer

    i = i + 1
    If i = 16 Then
        i = 0
    End If
    imgLens.Picture = PictureClip1.GraphicCell(i)
End Sub
0
 
LVL 1

Author Comment

by:rfb
ID: 1432427
my question requests the use of the timer control.
0
 
LVL 2

Accepted Solution

by:
percosolator earned 100 total points
ID: 1432428
What do you think the Timer1_Timer Event is used by?

This code is used to simulate the magnifying glass circling for "Find Files" in one of our programs....

We used the timer (Timer1) and an image control (imgLens) and the picture clip control with an array of 16 images (like cells in a movie) to be animated (PictureClip1)...

The code I posted is all that is needed (once you have your controls created and their properties set), for the animation effect that I believe you are talking about.

If this doesn't answer your question, please elucidate as to what effect exactly you are trying to achieve.
-------
Private Sub Timer1_Timer()
    Static i As Integer

    i = i + 1
    If i = 16 Then
        i = 0
    End If
    imgLens.Picture = PictureClip1.GraphicCell(i)
End Sub
-------------------------
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question