home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 November
/
Pcwk1197.iso
/
LOTUS
/
Eng-ins
/
ACROREAD
/
SUITE
/
DW09_S2.LSS
< prev
next >
Wrap
Text File
|
1996-07-09
|
1KB
|
28 lines
' Use an event to prompt the user for a title for the page
' whenever the user creates a page from this SMC page.
' You must attach this script to a page in an SMC
' file, for it to be of use.
' The following script is attached to the Created event,
' which is executed each time a page is created. This script
' asks the user for a page title and puts it in the
' Title placement block.
Sub Created(Source As Page)
Dim Title As String
Dim MyText As DrawObject
' Use the LotusScript InputBox function to create a
' dialog box with a prompt for user input.
Title = Inputbox$ ("Please type a page title ", _
"Page Title")
' Create a text block that will hold the text
' that the user types.
Set MyText = CurrentPage.CreateText
' Put the text that the user types into the text block.
MyText.Text = Title
' Move the text block into the "Click here..." block by
' using the PutIntoPlacementBlock method--this is
' a method of the DrawObject class.
MyText.PutIntoPlacementBlock(1)
End Sub