Ole 4 D Plugin presentation Author CLS Data

  • Slides: 11
Download presentation
Ole 4 D Plug-in presentation Author: CLS Data Pro http: //www. clsdatapro. com mailto:

Ole 4 D Plug-in presentation Author: CLS Data Pro http: //www. clsdatapro. com mailto: support@clsdatapro. com

Ole 4 D overview n What is Ole 4 D? n n Bridge between

Ole 4 D overview n What is Ole 4 D? n n Bridge between 4 D enviroment and Active. X/Ole objects Embeds Active. X/Ole objects in a 4 D form

Introducing Active. X Controls n Active. X controls are reusable software components n Can

Introducing Active. X Controls n Active. X controls are reusable software components n Can quickly add specialized functionality to applications n n Are based on an architecture for developing programmable software components Active. X controls are small, fast, and powerful, and make it easy to integrate and reuse software components

How Ole 4 D works Ole 4 D methods 4 th Dimension Application 4

How Ole 4 D works Ole 4 D methods 4 th Dimension Application 4 D events/notifications Plug-in API calls 4 D plug-in API Ole 4 D Plug-in Calls to the object functions Calls to the plug-in functions OLE specifications Active. X/Ole Object

Communication between 4 D and Active. X/Ole n n 4 D methods calls and

Communication between 4 D and Active. X/Ole n n 4 D methods calls and notifications are dispatched to the Ole object by the plug-in When an event occurs the Ole object notifies the plug-in to call the 4 D method associated to the event, if any

How comunication works n n Interaction between the plug-in and the Ole object is

How comunication works n n Interaction between the plug-in and the Ole object is defined by the OLE specifications 4 D and the plug-in comunicate using 4 D plug-in API

Example 4 D Enviroment Read a property of the Ole object by calling OCGet.

Example 4 D Enviroment Read a property of the Ole object by calling OCGet. Long. Prop erty 4 D Plug-in API Ole 4 D plug-in Call IDispatch: Invoke to retrieve the value of the property Ole Interfaces Active. X/Ole Object

Plug-in features n n n n Create and embed OLE objects Allow in place

Plug-in features n n n n Create and embed OLE objects Allow in place activation saving the object to blob Positioning of the OLE object toolbar Assign 4 D functions as event handlers for OLE object events, providing access to parameters Enable/disable showing ole object menu Run VB Script from 4 D using an interpreter Retrieve value of VB Script variables in 4 D create OLE objects linked to a file

Adding special functionality to a 4 D application n n Use a plug-in designed

Adding special functionality to a 4 D application n n Use a plug-in designed only for that feature Use the Ole 4 D plug-in

Why use Ole 4 D ? n 1. Active. X/Ole objects are widelly available

Why use Ole 4 D ? n 1. Active. X/Ole objects are widelly available n n n There a lot of Active. X objects installed by Windows that can be used to access OS features Many applications have a corresponding Active. X/Ole object that can be included using the plug-in in a 4 th Dimension form Due to the large market, the Active. X/Ole objects usually have low costs

Why use Ole 4 D ? 2. Other development advantages n There are Active.

Why use Ole 4 D ? 2. Other development advantages n There are Active. X/Ole objects for solving a wide range of problems n Saves development effort for a custom plug-in n Control applications from 4 D environment