[Migrated content. Thread originally posted on 24 October 2011]
I could verify that all the characteristics of RM/COBOL we use are working fine, except pop-up windows. Normally, we define the structure below:01 WCB.
03 WCB-HANDLE PIC 999 BINARY VALUE 0.
03 WCB-NUM-FILAS PIC 999 BINARY.
03 WCB-NUM-COLUMNAS PIC 999 BINARY.
03 WCB-POSICION PIC X VALUE "W".
88 WCB-POSICION-RELATIVA-PANTALLA VALUE "S".
88 WCB-POSICION-RELATIVA-VENTANA VALUE "W".
03 WCB-BORDE PIC X VALUE "Y".
88 WCB-BORDER-ON VALUE "Y".
03 WCB-TIPO-BORDE PIC 9.
03 WCB-CARACTER-BORDE PIC X.
03 WCB-RECUBRIR PIC X.
88 WCB-RECUBRIR-ON VALUE "Y".
03 WCB-CARACTER-RECUBRIR PIC X.
03 WCB-POSICION-TITULO PIC X.
88 WCB-TITULO-ARRIBA VALUE "T".
88 WCB-TITULO-ABAJO VALUE "B".
03 WCB-SITUACION-TITULO PIC X.
88 WCB-TITULO-CENTRADO VALUE "C".
88 WCB-TITULO-IZQUIERDA VALUE "L".
88 WCB-TITULO-DERECHA VALUE "R".
03 WCB-LONGITUD-TITULO PIC 999 BINARY.
03 WCB-TITULO PIC X(64).
In the procedure division is as simple as filling out the vars and display the structure:
MOVE WCB TO WCB-G.
COMPUTE WCB-NUM-FILAS = 10.
COMPUTE WCB-NUM-COLUMNAS = 62.
MOVE "Y" TO WCB-BORDE.
MOVE " VENTAS VENDEDORES " TO WCB-TITULO.
MOVE 20 TO WCB-LONGITUD-TITULO.
MOVE "C" TO WCB-SITUACION-TITULO.
MOVE "T" TO WCB-POSICION-TITULO.
DISPLAY WCB HIGH ERASE LINE 21 COL 2
CONTROL "WINDOW-CREATE".
The result of these operations is a new pop-up window which saves the portion of the screen used, and you can restore it later.
Those commands do not work in Visual COBOL. After a few hours digging into the documentation, I can't figure out how to create these windows.




