1 / 11

Ole4D Plug-in presentation

Ole4D Plug-in presentation. Author: CLS Data Pro http://www.clsdatapro.com mailto:support@clsdatapro.com. Ole4D overview. What is Ole4D? B ridge between 4D enviroment and ActiveX/Ole objects Embeds ActiveX/Ole objects in a 4D form. Introducing ActiveX Controls.

nimrod
Télécharger la présentation

Ole4D Plug-in presentation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ole4D Plug-in presentation Author: CLS Data Pro http://www.clsdatapro.com mailto:support@clsdatapro.com

  2. Ole4D overview • What is Ole4D? • Bridge between 4D enviroment andActiveX/Ole objects • Embeds ActiveX/Ole objects in a 4D form

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

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

  5. Communication between 4D and ActiveX/Ole • 4D methods calls and notifications are dispatched to the Ole objectby the plug-in • When an event occurs the Ole object notifies the plug-in to call the 4D method associated to the event, if any

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

  7. 4D Enviroment Ole4D plug-in ActiveX/Ole Object Read a property of the Ole object by calling OCGetLongProperty Call IDispatch:Invoke to retrieve the value of the property 4D Plug-in API Ole Interfaces Example

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

  9. Adding special functionality to a 4D application • Use a plug-in designed only for that feature • Use the Ole4D plug-in

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

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

More Related