visitedPart1
,
visitedPart2
, and
visitedPart3
are
the keys to this ex ample. They tell us whether the student has completed each
part of the tu torial. They are set to
False
in the
Ini
tial
ize
pro ce dure be cause
no part of the tu
torial has been completed. They are set to
True
in the
ReturnToMenuFromPart
pro cedures to in dicate when each part of the tu torial
has been completed.
Finally, three new procedures have been added:
HideQuizButton_with_ActivePresentation.Slides(2).Shapes(5).Vis_i_ble_=_False_Change_False_to_True'>HideQuizButton
,
ShowQuizButton
, and
DoWeShowQuizButton
. In my example, the Quiz but -
ton is shape number 5 on the menu slide (slide num ber 2) so I can hide it in
HideQuizButton
with
ActivePresentation.Slides(2).Shapes(5).Vis
i
ble = False
Change
False
to
True
to show it, and change 5 to some other num ber if your
Quiz but ton is not shape 5. Also note that the Quiz but ton should be hid den at the
be gin ning so
HideQuizButton
is added to
Ini
tial
ize
.
DoWeShowQuizButton
asks a three-part question: Is part 1 of the tu torial
completed, is part 2 of the tu torial com pleted, and is part 3 of the tu torial com pleted?
If all three parts have been completed—(
visitedPart1
,
visitedPart2
, and
visitedPart3
have each been set to
True
)—then we show the Quiz but ton. If
any part has not been com pleted (any
visitedPart
is not
True
), then we hide
the Quiz but ton.
Learn First, Ask Ques tions Later: The Tu torial and Quiz 113
Do'stlaringiz bilan baham: |