Enhanced ActiveX Support

Description

Alpha Anywhere provides support for the use of ActiveX controls on forms and Xdialogs. Third party ActiveX controls, as illustrated by the next picture, can add exciting new features to Alpha Anywhere applications. A Graph Control from Microsoft Office Used on an Alpha Anywhere Form:

images/XB_Excel_Graph_ActiveX_Demo_2.gif

Placing an ActiveX Control on a Form

The process of using an ActiveX control starts with selecting the ActiveX tool from the toolbar and sketching the rectangle that the control will occupy. A list asks you to select from the available controls on your PC.

images/XB_ActiveX_Select_Control.gif
It is important to remember that ActiveX controls are not included in the distribution of an Alpha Anywhere application.

The following image shows an ActiveX control sketched onto the form.

images/XB_ActiveX_on_form_1.gif

ActiveX controls provide their own events and Properties dialog boxes. You can see them by right clicking on the control.

images/XB_ActiveX_Right_Click_Menu.gif

The following is one properties page from the Microsoft Chart control. Some ActiveX controls will expose few or no properties.

images/XB_ActiveX_Control_Properties.gif

The events for a control are placed into a single script, as illustrated below. In this case the application developer inserted additional Xbasic code into the UnboundReadData event that reads data from a table and puts it into an array variable (which the ActiveX control will use as an input).

images/XB_ActiveX_Event_Script.gif

Xdialog Support

Xdialog forms can also include ActiveX controls by using the {ACTIVEX} command. The following picture shows an Xdialog dialog box with two different ActiveX controls.

images/XD_ActiveX_Controls.gif