Microsoft Office Suite
33
To make the specified balloon visible, use the
show balloon
command. Use the call back property to
run procedures based on selections from modeless balloons (balloons that remain visible while a
user works in the application).
The following example creates a balloon that contains tips for saving entered data.
set newbal to make new balloon of office assistant
set balloon type of newbal to bullets
set icon of newbal to icon tip
set balloon button of newbal to buttons ok cancel
set heading of newbal to "Tips for Saving Information."
repeat 3 times
make new balloon label at the beginning of newbal
end repeat
set label text of balloon label 1 of newbal to "Save your work often."
set label text of balloon label 2 of newbal to "Install a surge protector."
set label text of balloon label 3 of newbal to "Exit your application properly."
show balloon newbal
Defining and Reusing Balloons
You can reuse balloon objects you've already created by assigning the object to a variable and
displaying the variable when you need it. This example defines
balloon1
,
balloon2
, and
balloon3
separately so they can be reused.
set balloon1 to make new balloon of office assistant
set heading of balloon1 to "First balloon"
Set balloon2 to make new balloon of office assistant
set heading of balloon2 to "Second balloon"
Set balloon3 to make new balloon of office assistant
set heading of balloon3 to "Third balloon"
show balloon balloon1
show balloon balloon3
show balloon balloon2
Alternatively, instead of using separate variables, you can place the balloon object into an array.