skip to main content

Transitioning from ACUCOBOL-GT : User interface

User interface
The "INQUIRE WindowHandle, SYSTEM-HANDLE IN SystemHandle" syntax is not supported. This is a Java restriction. The system handle of the active window can be retrieved only with the native GetActiveWindow and GetForegroundWindow APIs.
o
o
o
o
DISPLAY-COLUMNS (1, 5, 10, 1, 8, 12)
is treated to:
DISPLAY-COLUMNS (1, 5, 10, 13, 20, 24)
       SCREEN SECTION.
       01  SCREEN1.
           03 ENTRY-FIELD
              LINE 2 COL 2AFTER EF-AFTER
           03 ENTRY-FIELD
              05 COMBO-BOX DROP-LIST   item-to-add ("1""2""3")
                 LINE 6COL 2,  LINES 10SIZE 20
           03 ENTRY-FIELD
       PROCEDURE DIVISION.
           DISPLAY STANDARD GRAPHICAL WINDOW.
           DISPLAY SCREEN1.
           ACCEPT  SCREEN1 UNTIL CRT-STATUS = 27 ON EXCEPTION CONTINUE.
           STOP    RUN.
           DESTROY COMBO1.
           DISPLAY COMBO1.
With ACUCOBOL-GT you’re able to move the focus on the combo-box, with isCOBOL you’re not.
The statement SET generic-handle TO HANDLE OF screen-name is always successful even if the control identified by screen-name doesn’t exist. In order to check if a control exists, you can rely on a Format 2 INQUIRE statement and query the STATUS property.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left