www.JosXP.com, Joomla Professionals

Balloon:


Category:  Help & Demos
API:  Sleep
ActiveX: Microsoft Agent Control 2.0

This example demonstrates how to use Microsoft agent control 2.0 to build interactive help for your project.

You need to load the file balloon.acs (build with Microsoft Agent Character Editor):

Agent1.Characters.Load "Balloon", App.Path & "\Balloon.acs"

For example, if you want to display the balloon with the text "Enter your email address" on the text Text1 write the following code:

Agent1.Characters("Balloon").Show
Agent1.Characters("Balloon").MoveTo ObX(Text1) , ObY(Text1)
Agent1.Characters("Balloon").Speak "Enter your email address"

The function ObX and ObY return the Left and the Top value of the object (Text1 in our example)




Trick Never Seen Before!