Hide the Quiz But ton
With a but ton on the menu slide, your stu dents can
choose to take the quiz
whenever they want. Sometimes this is appropriate; sometimes it is not. For those
times when you want your stu dents to complete the tu torial be fore taking the quiz,
we will combine variables (to keep track of what the stu dents have done)
with hid -
ing and showing ob jects (see “Hiding and Showing PowerPoint Objects” in Chapter
6). We will hide the Quiz but ton on the menu slide un til all sections of our tu torial
have been visited. Use the code in Figure 7.7 (page 114) to do this. Lines and proce-
dures noted
with the com ment
‘ADDED
have been added to the code from the pre vi-
ous ex am ple.
Note that this figure does not in clude the
RightAnswer
,
WrongAnswer
,
DoingWell
, and
DoingPoorly
pro cedures. Ei ther use the simple ones from
the previous ex ample (see Figure 7.6, page 111) or
use more com plicated quiz-
zes from other examples in this chapter.
If you are add ing onto the pre vious ex ample, all you need to change is the
VBA; all the but tons are tied to the same pro cedures. If you are starting with a
new file, use Figure 7.5 (page 110) to guide you
in creating the PowerPoint
slides and tying the buttons to procedures.
The variables
Do'stlaringiz bilan baham: