Table Of Contents

Previous topic

ActiveXCtrl

Next topic

anchors

This Page

phoenix_title activexwrapper

function_summary Functions Summary

axw__getattr__  
axw__init__  
axw_Cleanup  
axw_OEB  
axw_OnSize  
MakeActiveXClass Dynamically construct a new class that derives from wxWindow, the

Functions



axw__getattr__(self, attr)


axw__init__(self, parent, ID=-1, pos=DefaultPosition, size=DefaultSize, style=0)


axw_Cleanup(self)


axw_OEB(self, event)


axw_OnSize(self, event)


MakeActiveXClass(CoClass, eventClass=None, eventObj=None)

Dynamically construct a new class that derives from wxWindow, the ActiveX control and the appropriate COM classes. This new class can be used just like the wxWindow class, but will also respond appropriately to the methods and properties of the COM object. If this class, a derived class or a mix-in class has method names that match the COM object’s event names, they will be called automatically.

CoClass – A COM control class from a module generated by
makepy.py from a COM TypeLibrary. Can also accept a CLSID.
eventClass – If given, this class will be added to the set of
base classes that the new class is drived from. It is good for mix-in classes for catching events.
eventObj – If given, this object will be searched for attributes
by the new class’s __getattr__ method, (like a mix-in object.) This is useful if you want to catch COM callbacks in an existing object, (such as the parent window.)