The Common Widgets Extended Widgets framework can be used to wrapper an OleControl so it can be used in a more familiar way. That is, Smalltalk accesssors are used to wrap the OleControl property messages (propertyAt: and propertyAt:put:) and invoke message (invoke:withArguments:), and the Common Widgets callback style is used for all the OLE events of interest.For a reference on building Extended Widgets, see the Extended Widgets. The main approach is to:
2. Create an instance of OleControl in the Extended Widgets createPrimaryWidget:parent:argBlock: method and register an ambient-property handler. For example:
3. Register OLE event handlers and associate them with Common Widgets callbacks in the initializeAfterCreate method. For example:lineSize: resourceValue
|