home *** CD-ROM | disk | FTP | other *** search
- ' Putting clip art on the current page.
- ' This script defines a sub named LaunchTextBox that
- ' puts a piece of clip art on the current page. Note that
- ' you can attach this script to button click event.
- Sub LaunchTextBox
- ' This sub uses the CreateSymbol method (Page class) to
- ' create clip art. In this example, one of the
- ' parameters of CreateSymbol uses the TemplateDir property
- ' of Preferences (Preferences is itself a property of the
- ' Application class) to specify the path for the clip art
- ' file, the file name is concatinated to the path.
- ' The second parameter indicates which of the textbox
- ' symbols to add.
- CurrentPage.CreateSymbol _
- CurrentApplication.Preferences.TemplateDir +_
- "textbox.sym", 1
- ' Once the clip art is created it is a selected element
- ' on the page. The next line of code uses the
- ' ClearSelection method to deselect all
- ' elements on the page. ClearSelection is a method of
- ' both the Selection and PageSelection classes.
- Selection.ClearSelection
- End Sub
-