Hosting QB Damage Points in HTML

This page describes the steps to use the QB Damage Points Control in HTML pages (IE4+). This assumes you have properly installed QB Damage Points ActiveX Control (NOT the preview).

Because either Visual Studio (VS) or the MS Office Script Editor (MSE) are already installed on so many computers, the procedure will focus more on both tools. Access MSE using Alt+Shift+F11 from any Office 2000+ application. Otherwise you can get ActiveX Control Pad (CtlPad) from download.com.

 

Creating a new page

You can copy the following HTML code to host QB Damage Points in your page (0.97 and compatible)

<html>
<body> <object id="QBDMap1" width="100%" height="100%" classid="clsid:A220B8BD-F9C6-4CC0-8DCC-2BA591D9D615"> </object>
</body></html>

With web authoring tools locate QB Damage Points in the list of ActiveX controls installed on your machine. If QB Damage Points does not appear, you need to reinstall it.

At this stage, you can run the page with IE, create a map, but you will not be able to configure anything. To do so, there are a couple of steps to follow.

Defining the initial settings

Initial settings determine which options will be available to the user.

In the property page:

Defining the initial configuration

The initial configuration contains the definition of the attributes of units, weapons and hte map. To change the configuration, click Edit Configuration from the property page.

The Configuration window allows you to add, delete or modify object attributes, and select the available run modes for your configuration. You can also import settings from another configuration, and export everything once you are finished.

If VS/MSE prompts you to apply changes made to the property pages when you leave the Configuration editor, answer Yes. Save the HTML page to your disk.

How do I configure manually?

To define the initial configuration:

To define the settings, add the following tags between the <object> tags:

If this looks too difficult for you, there are code samples in the distribution, ready for your use.