Maptitude GISDK Help

COM Control Items

 

A COM control item allows you to place a COM (or ActiveX) control into a dialog box. The format of a COM control item definition is:

 

COM Control {"item name"} hpos, vpos {, width {, height}} {options} {do

     <statements go here>

     endItem}

 

If the do ... endItem section of the COM control definition is included, the statements are executed when the control is first initialized and whenever the control fires an event. The object interface to the control is not available during the running of the Init item of the dialog box.

 

COM Control Options

Description

Disabled

The COM control is initially disabled.

Hidden

The COM control is initially hidden.

Help: help_specs

Help information displayed in a popup window and the status bar. Help strings can be string expressions.

Prompt: expression

The text that appears to the left of the COM control. If omitted, there is no text next to the COM control.

Class: expression

The text string with the ProgID of the COM control.

Object: variable

The variable that will be set to the COM interface of the control.

Variables: variables

The first variable indicates the name of the event that has been fired by the COM control, or null when the control is initialized. The second variable contains an array of the parameters passed by the event.

 

For example:

 

COM Control 0, 0, 30, 6 Class: "Shell.Explorer" Object: objvar Variables: name_params

 

 

©2025 Caliper Corporation www.caliper.com