is dirty; it saves re gardless. Thus, you don’t want to save if you have made
changes that you don’t want saved (even
if you have called
MakeNotDirty
).
Being sure that changes are saved or not saved as you, the designer, know
they should be is very important. Your students won’t know whether they should
save or not, and they shouldn’t be bothered by be ing asked.
The pro cedures in
this section will help you man age the saving or not saving of your presentation.
What’s in a Name? Finding and Chang ing
Object and Slide Names
Ob ject Names
In Chapter 6 we discussed how to ref erence ob jects by their names, and we
noted how dif ficult it is to re member the name of an ob ject. The fol lowing
scripts can be used to find the name of an ob ject and set the name of an ob ject.
Note that all other scripts in this book are de signed to be run in Slide Show View.
These scripts are de signed to be run in Edit View.
The two
procedures that we need are
GetObjectName
and
SetObjectName
.
GetObjectName
finds out what the name of an ob ject is.
SetObjectName
asks you to type a new name for an ob ject.
If you run the
GetObjectName
script while an ob
ject
is selected, a
MsgBox
will pop up with the ob ject’s name. If you run
SetObjectName
, an
InputBox
will al low you to en ter a name for an object. These scripts check to
make sure that one and
only one ob ject is selected, because you can’t get or
change the name of more than one object at a time.
Do'stlaringiz bilan baham: