Ver Mensaje Individual
  #2
Antiguo 11 de julio de 2015, 23:19
Rapinto
Gran amigo del Foro
Guru de COBOL
Activista del Foro: Activista del Foro - Issue reason: ¡Gracias! Agradecimientos: Por muchos agradecimientos de parte de los Foreros - Issue reason: Por ayudar mucho a los foreros Guru de los Gurus: Por solidos y amplios conocimientos - Issue reason: Por saber demasiado! 
Última Actividad 29.01.2018 20:23
Posts Posts: 240
Likes enviados Enviados: 19
Likes recibidos Recibidos: 224

Roger,

Experimenta isto:
Código COBOL:
  1. WORKING-STORAGE SECTION.
  2. 01 ScreenWidth   PIC S9(9) COMP-5.
  3. 01 ScreenHeight  PIC S9(9) COMP-5.
  4. 01 ScreenScale   PIC S9(4) COMP-5.
  5. PROCEDURE DIVISION.
  6. * Specify the scale desired -
  7. *  Pixels in this example
  8.     MOVE 0 To ScreenScale
  9.     INVOKE MainForm "GetScreenSize" USING ScreenWidth ScreenHeight ScreenScale

As variáveis são:
ScreenWidth: Returns the width of the screen.
ScreenHeight: Returns the height of the screen.
ScaleMode: The units to be used. If omitted, PowerCOBOL uses the ScaleMode value. Use the values (with equivalent constants)

Código:
0 – Pixels  (POW-SCALEPIXELS)
1 - 1/100mm (POW-SCALEHIMETRIC)
2 - 1/1000inch  (POW-SCALEHIENGLISH)
3 - 1/20Points   (POW-SCALETWIPS)
Un Saludo,
Rui

Añadido despues de 8 minutos
Roger,
Se quiseres a área disponível:

Código COBOL:
  1. Example:
  2. WORKING-STORAGE SECTION.
  3. 01 ScreenLeft     PIC S9(9) COMP-5.
  4. 01 ScreenTop      PIC S9(9) COMP-5.
  5. 01 ScreenWidth    PIC S9(9) COMP-5.
  6. 01 ScreenHeight   PIC S9(9) COMP-5.
  7. 01 ScreenScale    PIC S9(4) COMP-5.
  8. PROCEDURE       DIVISION.
  9. * Specify the scale desired -
  10. *  Pixels in this example
  11.    MOVE 0 TO ScreenScale
  12.    INVOKE MainForm "GetWorkArea" USING ScreenLeft  ScreenTop ScreenWidth
  13.            ScreenHeight ScreenScale
  14.  

Acquires the dimensions of the available display area on the screen - the screen size, less areas occupied by the task bar(s). Uses the units defined in the ScaleMode parameter.

Saludos,
Rui

Última edición por Rapinto fecha: 11 de julio de 2015 a las 23:27. Razón: Post añadido
Rapinto is offline   Responder Con Cita