Discussion:
Need help with scroll bar activex control to scroll stack of image
(too old to reply)
ucsdgemini
2007-09-19 14:40:03 UTC
Permalink
To whom it may concern:

Here is what I want to do. I have a stack of images on one slide of a ppt
presentation all centered on top of each other. I have a custom animation
setup to start on click with each image and thus, when running the slide
show, it appears the images are changing, one on top of the other to scroll
through the stack of images on the one slide.

Now, I want to add a scroll bar activex control to the same slide that
changes the images. In essence, the same as clicking the arrow on the
keyboard or rolling the wheel on the mouse to move the through the stack of
images on the slide. Is this possible? Can someone give me some sample code?

Thanks
Shyam Pillai
2007-09-19 14:49:51 UTC
Permalink
Since you have already set up the images and the animtation, it would easy
to scroll thru the shapes using SlideShowWindows(1).View.Next and move back
up using SlideShowWindows(1).View.Previous.
--
Regards,
Shyam Pillai

Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
Post by ucsdgemini
Here is what I want to do. I have a stack of images on one slide of a ppt
presentation all centered on top of each other. I have a custom animation
setup to start on click with each image and thus, when running the slide
show, it appears the images are changing, one on top of the other to scroll
through the stack of images on the one slide.
Now, I want to add a scroll bar activex control to the same slide that
changes the images. In essence, the same as clicking the arrow on the
keyboard or rolling the wheel on the mouse to move the through the stack of
images on the slide. Is this possible? Can someone give me some sample code?
Thanks
ucsdgemini
2007-09-19 15:50:04 UTC
Permalink
Thanks! However, my VB skills are nill. How do you assign this to the scroll
bar to move forward and backward? Also, I would like the scroll bar to move
to the end without exiting the animation completely so that I don't move on
to the next slide.
Post by Shyam Pillai
Since you have already set up the images and the animtation, it would easy
to scroll thru the shapes using SlideShowWindows(1).View.Next and move back
up using SlideShowWindows(1).View.Previous.
--
Regards,
Shyam Pillai
Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
Post by ucsdgemini
Here is what I want to do. I have a stack of images on one slide of a ppt
presentation all centered on top of each other. I have a custom animation
setup to start on click with each image and thus, when running the slide
show, it appears the images are changing, one on top of the other to scroll
through the stack of images on the one slide.
Now, I want to add a scroll bar activex control to the same slide that
changes the images. In essence, the same as clicking the arrow on the
keyboard or rolling the wheel on the mouse to move the through the stack of
images on the slide. Is this possible? Can someone give me some sample code?
Thanks
Shyam Pillai
2007-09-20 18:48:22 UTC
Permalink
There are two ways to approach this:
a) since you already know how many animations are present, you can set the
scrollbar max property to this one.
b) trap the SlideShowNextClick event to ascertain the next animation that
will be fired.
--
Regards,
Shyam Pillai

Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
Post by ucsdgemini
Thanks! However, my VB skills are nill. How do you assign this to the scroll
bar to move forward and backward? Also, I would like the scroll bar to move
to the end without exiting the animation completely so that I don't move on
to the next slide.
Post by Shyam Pillai
Since you have already set up the images and the animtation, it would easy
to scroll thru the shapes using SlideShowWindows(1).View.Next and move back
up using SlideShowWindows(1).View.Previous.
--
Regards,
Shyam Pillai
Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
Post by ucsdgemini
Here is what I want to do. I have a stack of images on one slide of a ppt
presentation all centered on top of each other. I have a custom animation
setup to start on click with each image and thus, when running the slide
show, it appears the images are changing, one on top of the other to scroll
through the stack of images on the one slide.
Now, I want to add a scroll bar activex control to the same slide that
changes the images. In essence, the same as clicking the arrow on the
keyboard or rolling the wheel on the mouse to move the through the
stack
of
images on the slide. Is this possible? Can someone give me some sample code?
Thanks
ucsdgemini
2007-09-20 19:36:03 UTC
Permalink
Thanks Shyam. Things are getting close but I don't know how to "trap" and
event. Here is the latest code. We are grabbing the max number from the
number of timeline counts. The issues now are that:
1) It does not scroll right away. I have to grab the scroll bar, pull it all
the way to the right and then it seems to scroll. I don't know why it won't
scroll right away. We thought GotFocus would help.
2) It intermittently exits. It seems to lose where it is located or something.

Can you examine the code we have now and make any changes you think would
work? Your help is greatly appreciated.

Private Sub ScrollBar1_GotFocus()
ScrollBar1.Min = 1
ScrollBar1.Max =
ActivePresentation.Slides(Me.SlideNumber).TimeLine.MainSequence.Count
ScrollBar1.Value = 1
End Sub


Private Sub ScrollBar1_scroll()


Static LastValue As Integer
Select Case ScrollBar1.Value
Case Is > LastValue
SlideShowWindows(1).View.previous
Case Is < LastValue
SlideShowWindows(1).View.Next
End Select

LastValue = ScrollBar1.Value

End Sub
Post by Shyam Pillai
a) since you already know how many animations are present, you can set the
scrollbar max property to this one.
b) trap the SlideShowNextClick event to ascertain the next animation that
will be fired.
--
Regards,
Shyam Pillai
Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
Post by ucsdgemini
Thanks! However, my VB skills are nill. How do you assign this to the scroll
bar to move forward and backward? Also, I would like the scroll bar to move
to the end without exiting the animation completely so that I don't move on
to the next slide.
Post by Shyam Pillai
Since you have already set up the images and the animtation, it would easy
to scroll thru the shapes using SlideShowWindows(1).View.Next and move back
up using SlideShowWindows(1).View.Previous.
--
Regards,
Shyam Pillai
Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
Post by ucsdgemini
Here is what I want to do. I have a stack of images on one slide of a ppt
presentation all centered on top of each other. I have a custom animation
setup to start on click with each image and thus, when running the slide
show, it appears the images are changing, one on top of the other to scroll
through the stack of images on the one slide.
Now, I want to add a scroll bar activex control to the same slide that
changes the images. In essence, the same as clicking the arrow on the
keyboard or rolling the wheel on the mouse to move the through the
stack
of
images on the slide. Is this possible? Can someone give me some sample code?
Thanks
ucsdgemini
2007-09-19 16:02:07 UTC
Permalink
Sorry, one more thing to ask!

Let's say we have 20 images. How do I set the scrollbar max to the number of
animations, in this case 20.
Post by Shyam Pillai
Since you have already set up the images and the animtation, it would easy
to scroll thru the shapes using SlideShowWindows(1).View.Next and move back
up using SlideShowWindows(1).View.Previous.
--
Regards,
Shyam Pillai
Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
Post by ucsdgemini
Here is what I want to do. I have a stack of images on one slide of a ppt
presentation all centered on top of each other. I have a custom animation
setup to start on click with each image and thus, when running the slide
show, it appears the images are changing, one on top of the other to scroll
through the stack of images on the one slide.
Now, I want to add a scroll bar activex control to the same slide that
changes the images. In essence, the same as clicking the arrow on the
keyboard or rolling the wheel on the mouse to move the through the stack of
images on the slide. Is this possible? Can someone give me some sample code?
Thanks
Shyam Pillai
2007-09-20 18:49:25 UTC
Permalink
Set the max and min property of the scrollbar to set the limits.
--
Regards,
Shyam Pillai

Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
Post by ucsdgemini
Sorry, one more thing to ask!
Let's say we have 20 images. How do I set the scrollbar max to the number of
animations, in this case 20.
Post by Shyam Pillai
Since you have already set up the images and the animtation, it would easy
to scroll thru the shapes using SlideShowWindows(1).View.Next and move back
up using SlideShowWindows(1).View.Previous.
--
Regards,
Shyam Pillai
Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
Post by ucsdgemini
Here is what I want to do. I have a stack of images on one slide of a ppt
presentation all centered on top of each other. I have a custom animation
setup to start on click with each image and thus, when running the slide
show, it appears the images are changing, one on top of the other to scroll
through the stack of images on the one slide.
Now, I want to add a scroll bar activex control to the same slide that
changes the images. In essence, the same as clicking the arrow on the
keyboard or rolling the wheel on the mouse to move the through the
stack
of
images on the slide. Is this possible? Can someone give me some sample code?
Thanks
ucsdgemini
2007-09-19 16:10:01 UTC
Permalink
Somebody at work tried something that does not seem to be working reliably.
This is what it looks like:

Public previous As Integer

Private Sub ScrollBar1_Change()

End Sub

Private Sub ScrollBar1_GotFocus()
'ScrollBar1.Value = 1
previous = ScrollBar1.Value
ScrollBar1.Max = ActivePresentation.Slides(1).TimeLine.MainSequence.Count
End Sub

Private Sub ScrollBar1_LostFocus()

End Sub

Private Sub ScrollBar1_scroll()

If previous > ScrollBar1.Value Then
SlideShowWindows(1).View.previous
Else
SlideShowWindows(1).View.Next
End If

End Sub
Post by Shyam Pillai
Since you have already set up the images and the animtation, it would easy
to scroll thru the shapes using SlideShowWindows(1).View.Next and move back
up using SlideShowWindows(1).View.Previous.
--
Regards,
Shyam Pillai
Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
Post by ucsdgemini
Here is what I want to do. I have a stack of images on one slide of a ppt
presentation all centered on top of each other. I have a custom animation
setup to start on click with each image and thus, when running the slide
show, it appears the images are changing, one on top of the other to scroll
through the stack of images on the one slide.
Now, I want to add a scroll bar activex control to the same slide that
changes the images. In essence, the same as clicking the arrow on the
keyboard or rolling the wheel on the mouse to move the through the stack of
images on the slide. Is this possible? Can someone give me some sample code?
Thanks
ucsdgemini
2007-09-19 19:28:00 UTC
Permalink
Sorry again! But, how do you select the nth animation in an animation list?
We were trying something like:

ActivePresentation.Slides(Me.SlideNumber).TimeLine.MainSequence.Item(ScrollBar1.Value).MoveBefore.....????????????
Post by Shyam Pillai
Since you have already set up the images and the animtation, it would easy
to scroll thru the shapes using SlideShowWindows(1).View.Next and move back
up using SlideShowWindows(1).View.Previous.
--
Regards,
Shyam Pillai
Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
Post by ucsdgemini
Here is what I want to do. I have a stack of images on one slide of a ppt
presentation all centered on top of each other. I have a custom animation
setup to start on click with each image and thus, when running the slide
show, it appears the images are changing, one on top of the other to scroll
through the stack of images on the one slide.
Now, I want to add a scroll bar activex control to the same slide that
changes the images. In essence, the same as clicking the arrow on the
keyboard or rolling the wheel on the mouse to move the through the stack of
images on the slide. Is this possible? Can someone give me some sample code?
Thanks
Shyam Pillai
2007-09-20 18:50:49 UTC
Permalink
You cannot select the nth animation. Animations will have to execute in
sequence.
--
Regards,
Shyam Pillai

Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
Post by ucsdgemini
Sorry again! But, how do you select the nth animation in an animation list?
ActivePresentation.Slides(Me.SlideNumber).TimeLine.MainSequence.Item(ScrollBar1.Value).MoveBefore.....????????????
Post by Shyam Pillai
Since you have already set up the images and the animtation, it would easy
to scroll thru the shapes using SlideShowWindows(1).View.Next and move back
up using SlideShowWindows(1).View.Previous.
--
Regards,
Shyam Pillai
Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
Post by ucsdgemini
Here is what I want to do. I have a stack of images on one slide of a ppt
presentation all centered on top of each other. I have a custom animation
setup to start on click with each image and thus, when running the slide
show, it appears the images are changing, one on top of the other to scroll
through the stack of images on the one slide.
Now, I want to add a scroll bar activex control to the same slide that
changes the images. In essence, the same as clicking the arrow on the
keyboard or rolling the wheel on the mouse to move the through the
stack
of
images on the slide. Is this possible? Can someone give me some sample code?
Thanks
ucsdgemini
2007-09-20 13:12:00 UTC
Permalink
Come on guys. Someone must have a solution to this!
Post by ucsdgemini
Here is what I want to do. I have a stack of images on one slide of a ppt
presentation all centered on top of each other. I have a custom animation
setup to start on click with each image and thus, when running the slide
show, it appears the images are changing, one on top of the other to scroll
through the stack of images on the one slide.
Now, I want to add a scroll bar activex control to the same slide that
changes the images. In essence, the same as clicking the arrow on the
keyboard or rolling the wheel on the mouse to move the through the stack of
images on the slide. Is this possible? Can someone give me some sample code?
Thanks
ucsdgemini
2007-09-21 14:32:02 UTC
Permalink
Thanks Shyam. Things are getting close but I don't know how to "trap" an
event. If I have a slide after the stacked image slide it exits then
animation right to the next slide. Here is the latest code. We are grabbing
the max number from the
number of timeline counts. The issues now are that:

1) It does not scroll right away. I have to grab the scroll bar, pull it all
the way to the right and then it seems to scroll. It shows a lot of blank
white images as well which I don't know why and like I said it will not
scroll right away. We thought GotFocus would help.
2) It intermittently exits. It seems to lose where it is located or something.

Can you examine the code we have now and make any changes you think would
work? Your help is greatly appreciated.

Private Sub ScrollBar1_GotFocus()
ScrollBar1.Min = 1
ScrollBar1.Max =
ActivePresentation.Slides(Me.SlideNumber).TimeLine.MainSequence.Count
ScrollBar1.Value = 1
End Sub


Private Sub ScrollBar1_scroll()


Static LastValue As Integer
Select Case ScrollBar1.Value
Case Is > LastValue
SlideShowWindows(1).View.previous
Case Is < LastValue
SlideShowWindows(1).View.Next
End Select

LastValue = ScrollBar1.Value

End Sub
Post by ucsdgemini
Here is what I want to do. I have a stack of images on one slide of a ppt
presentation all centered on top of each other. I have a custom animation
setup to start on click with each image and thus, when running the slide
show, it appears the images are changing, one on top of the other to scroll
through the stack of images on the one slide.
Now, I want to add a scroll bar activex control to the same slide that
changes the images. In essence, the same as clicking the arrow on the
keyboard or rolling the wheel on the mouse to move the through the stack of
images on the slide. Is this possible? Can someone give me some sample code?
Thanks
ucsdgemini
2007-10-30 19:25:02 UTC
Permalink
I am trying to refresh this thread as I have not solved this problem. Can
anyone help with this?
Post by ucsdgemini
Here is what I want to do. I have a stack of images on one slide of a ppt
presentation all centered on top of each other. I have a custom animation
setup to start on click with each image and thus, when running the slide
show, it appears the images are changing, one on top of the other to scroll
through the stack of images on the one slide.
Now, I want to add a scroll bar activex control to the same slide that
changes the images. In essence, the same as clicking the arrow on the
keyboard or rolling the wheel on the mouse to move the through the stack of
images on the slide. Is this possible? Can someone give me some sample code?
Thanks
Loading...