support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
 

Veryant Knowledge Base
Home > All Categories > Transitioning to isCOBOL > What are the options for using ActiveX controls?
Question Title What are the options for using ActiveX controls?

Question:

What are my options if my application depends on ActiveX controls and I want to continue to use those controls when running on Windows?

Answer:

isCOBOL supports Javabean controls in the GUI, and there are a number of solutions for accessing COM/OLE/ActiveX from within a Java-based application.

We have tested and verified the functionality of comfyj which generates java classes to wrap ActiveX objects.
We recommend the Comfyj product because it is more complete and better supported from a technical point of view.
In addition, they charge just for development and not for runtime.

Veryant can provide a side-by-side example of a program that uses a Microsoft COM object with ACUCOBOL syntax and the same program written with isCOBOL and Comfyj.

An ActiveX control in the screen section, when converted to a Javabean, looks similar to the following:

   screen section.
   01 mask .
      03 GR-TEST JAVA-BEAN
          LINE 2
          COL 2
          LINES 28
          SIZE 90
          ID GR-ID-TEST
          VISIBLE 1
          ENABLED 1
          CLSID "VSFlexGridContainer"
          EVENT-LIST ("vsflexgrid")
          OBJECT IN FLEXGRID-TEST
          EVENT JAVA-BEAN-EVENT

   java-bean-event.
      if event-type = msg-jb-event
         set flex-event-obj to event-obj as activex-event
         evaluate event-data-2
         when 100
             display "FSCommand event: command = "
         end-evaluate
      else
         set flex-event-obj to event-obj as activex-event
      end-if.

Authored by: Veryant Support This question has been viewed 8652 times so far.
Click Here to View all the questions in Transitioning to isCOBOL category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. isCOBOL implementation of CALL SYSTEM and the iscobol.system.exec property
  2. What compiler options and properties should I use for mainframe migrations with UniKix?
Article Information Additional Information
Article Number: 39
Created: 2009-08-31 4:59 PM
Rating: 1 Star
 
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
 
Search Knowledge Base Search Knowledge Base



 
 

© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.