Cobol Foro

Cobol Foro (https://www.cobolforo.es/index.php)
-   PowerCOBOL (ActiveX, v4 - v11) (https://www.cobolforo.es/forumdisplay.php?f=9)
-   -   [Sintaxis] Valor SHIFT+TAB (https://www.cobolforo.es/showthread.php?t=39)

Recato53 18 de febrero de 2015 11:44

Valor SHIFT+TAB
 
Buenos días.
Quiero controlar la tecla SHIFT+TAB, no encuentro como hacerlo.

Gracias.

Kuk 18 de febrero de 2015 14:50

Sobre algun control concreto o sobre un Form? Si es control di cual.

Recato53 18 de febrero de 2015 18:42

Es sobre un textBox control.

Kuk 18 de febrero de 2015 18:51

Cita:

Citación del post de Recato53 (Mensaje 107)
Es sobre un textBox control.

En el evento KeyDown tienes el siguiente codigo generado:

Código COBOL:
  1.  ENVIRONMENT     DIVISION.
  2.  DATA            DIVISION.
  3.  WORKING-STORAGE SECTION.
  4.  LINKAGE         SECTION.
  5.  01  POW-ARG-KEYCODE PIC S9(4) COMP-5.
  6.  01  POW-ARG-SHIFT   PIC S9(4) COMP-5.
  7.  PROCEDURE       DIVISION USING POW-ARG-KEYCODE POW-ARG-SHIFT.    

El campo POW-ARG-KEYCODE te indica la tecla pulsada, el campo POW-ARG-SHIFT indica si estan pulsados SHIFT, CTRL y ALT:

Código:

2.    KeyCode: The key code that was pressed. See Key Code Constants for details of key codes.

3.    ShiftState: Bit mask settings indicate the state of each of the shift keys - Shift, Ctrl and ALT. Numbering the bits 1 to 8, from least significant to most significant, the bit mapping is:
1 - Shift key      (POW-SHIFTSTATE-SHIFT)
2 - Ctrl key        (POW-SHIFTSTATE-CTRL)
3 - Alt key          (POW-SHIFTSTATE-ALT)
For example if the parameter has a value of 6 (binary 00000110), this indicates that the Ctl and Alt keys are depressed.



La franja horaria es GMT +2. Ahora son las 03:22.

Powered by: vBulletin, Versión 3.8.7
Derechos de Autor ©2000 - 2026, Jelsoft Enterprises Ltd.