The important parts of this example are shapes 6, 7, and 8 on slide 2 (the
menu slide). These are the smil ing sun shine pic tures that indicate that a sec tion
of the tutorial has been completed. Of course,
the numbers might change de-
pending on how you create the menu slide, and you
might have more menu items
and thus more smiling sunshines (or whatever pic ture you choose).
As the shapes are the im portant parts, all but one
of the new procedures deal
with the shapes. The three lines in the
Ini
tial
ize
pro ce dure, like
ActivePresentation.Slides(2).Shapes(6).Vis
i
ble = False
hide the shapes so that when the stu dent reaches
the menu for the first time, the
shapes are hid den. If your menu is not on slide 2, change the 2 to something else.
In ad dition, this hides shape 6, so there is one line
for each smiling sun shine,
each with a dif ferent number.
Next we need to show the shapes at the appropriate time. They will be
shown when clicking on the button that re turns from each part of the tu torial.
The three
pro ce dures show the ap
pro pri ate shape
with
ActivePresentation.Slides(2).Shapes(6).Vis
i
ble = True
and use
JumpToMenu
to re turn to the menu slide.
The tricky part about this example is get ting the shape num bers to match
the shapes that you use. Fig uring out the num ber of
each shape is discussed in
“Referencing Ob jects by Number” in Chapter 6.
If you prefer to change the color of your but tons in stead of showing a goofy
icon, you can do that with a very small change to the above code. In the
Do'stlaringiz bilan baham: