Class: cComDbActiveXControl

Properties  Events  Methods    Index of Classes

Generates data-aware wrapper classes for imported ActiveX controls

Hierarchy

cObject
---cUIObject
------DfComUIObject
---------DfInPlaceComObject
------------DfComActiveXControl
---------------cComActiveXControl
------------------cComActiveXEntryControl_
---------------------cComDbActiveXControl_
------------------------cComDbActiveXControl

Library: Windows Application Class Library

Package: cComDbActiveXControl.pkg

Mixins: DFNavigate_Mixin DFCode_DEO_Mixin Extended_DEO_Mixin Extended_DEO_Status_Help_Mixin

Description

This class is used to generate data-aware wrapper classes for imported ActiveX controls.

This class inherits all of the properties, events and methods of the cComActiveXControl class. It also inherits the public interface methods that are shared by all DataFlex data-aware controls such as dbForm, dbEdit or dbGrid.

In summary, cComDbActiveXControl is used to wrap and ActiveX control so that it becomes functionally identical to any DataFlex data-aware control.

The following code, taken from the COM sample application, shows the code for instantiating a data-aware calendar ActiveX control.

Object oOrderCalendar is a cComDbCalendar
    Set Size to 140 140
    Set Location to 1 -3

    Embed_ActiveX_Resource
    // The ActiveX properties will be embedded in the control's source code here in binary format.
    End_Embed_ActiveX_Resource

    Entry_Item Orderhea.Order_date
End_Object    // oOrderCalendar


Note: All of the standard data entry object keys and features are automatically built into this class. Such as:
  • Standard key support (F4=prompt, F7, F8, F9=find, F2=save, etc.)
  • Support for the tool bar buttons.