Si, con gusto.
Como se puede ver esta pantalla esta colgada al evento bKeyChar() del objeto GET.
para lo cual copie y modifique el programa TGet.prg para tener disponible LButtonDown().
NOTA: para tus pruebas te recomiendo eliminar lo referente a checkbox "Codigo", esto se puso par aceptar un patron de captura, donde el programa automaticamente va cambiando de modalidad Alfabetica a Numerica.
Code: Select all
#ifdef _CE
#include "c:\vce\include\arm\windows.h"
#include "c:\vce\include\arm\commctrl.h"
#endif
TESTGET DIALOG DISCARDABLE 10, 7, 138, 168
STYLE WS_POPUP|DS_MODALFRAME|WS_SYSMENU|WS_VISIBLE
FONT 8, "System"
{
CONTROL "", 26, "Edit", WS_BORDER|WS_TABSTOP, 5, 10, 91, 12
}
KEYPADC DIALOG DISCARDABLE 10, 7, 138, 168
STYLE WS_POPUP|DS_MODALFRAME|WS_SYSMENU|WS_VISIBLE
FONT 8, "System"
{
CONTROL "A", 101, "Button", WS_TABSTOP, 3, 29, 20, 16
CONTROL "B", 102, "Button", WS_TABSTOP, 25, 29, 20, 16
CONTROL "C", 103, "Button", WS_TABSTOP, 47, 29, 20, 16
CONTROL "D", 104, "Button", WS_TABSTOP, 70, 29, 20, 16
CONTROL "E", 105, "Button", WS_TABSTOP, 92, 29, 20, 16
CONTROL "F", 106, "Button", WS_TABSTOP, 114, 29, 20, 16
CONTROL "G", 107, "Button", WS_TABSTOP, 3, 53, 20, 16
CONTROL "H", 108, "Button", WS_TABSTOP, 25, 53, 20, 16
CONTROL "I", 109, "Button", WS_TABSTOP, 47, 53, 20, 16
CONTROL "J", 110, "Button", WS_TABSTOP, 70, 53, 20, 16
CONTROL "K", 111, "Button", WS_TABSTOP, 92, 53, 20, 16
CONTROL "L", 112, "Button", WS_TABSTOP, 114, 53, 20, 16
CONTROL "M", 113, "Button", WS_TABSTOP, 3, 77, 20, 16
CONTROL "N", 114, "Button", WS_TABSTOP, 25, 77, 20, 16
CONTROL "O", 116, "Button", WS_TABSTOP, 47, 77, 20, 16
CONTROL "P", 117, "Button", WS_TABSTOP, 70, 77, 20, 16
CONTROL "Q", 118, "Button", WS_TABSTOP, 92, 77, 20, 16
CONTROL "R", 119, "Button", WS_TABSTOP, 114, 77, 20, 16
CONTROL "S", 120, "Button", WS_TABSTOP, 3, 101, 20, 16
CONTROL "T", 121, "Button", WS_TABSTOP, 25, 101, 20, 16
CONTROL "U", 122, "Button", WS_TABSTOP, 47, 101, 20, 16
CONTROL "V", 123, "Button", WS_TABSTOP, 70, 101, 20, 16
CONTROL "W", 124, "Button", WS_TABSTOP, 92, 101, 20, 16
CONTROL "X", 125, "Button", WS_TABSTOP, 114, 101, 20, 16
CONTROL "Y", 126, "Button", WS_TABSTOP, 70, 125, 20, 16
CONTROL "Z", 127, "Button", WS_TABSTOP, 92, 125, 20, 16
CONTROL "Ñ", 115, "Button", WS_TABSTOP, 114, 125, 20, 16
CONTROL "NUM", 140, "Button", WS_TABSTOP, 7, 148, 36, 16
CONTROL "CHRS", 141, "Button", WS_TABSTOP, 7, 148, 36, 16
CONTROL "Espacio", 144, "Button", WS_TABSTOP, 6, 126, 56, 16
CONTROL "<<ENTER>>", 142, "Button", WS_TABSTOP, 90, 149, 44, 16
CONTROL "1", 131, "Button", WS_TABSTOP, 3, 28, 41, 16
CONTROL "2", 132, "Button", WS_TABSTOP, 48, 28, 41, 16
CONTROL "3", 133, "Button", WS_TABSTOP, 94, 28, 41, 16
CONTROL "4", 134, "Button", WS_TABSTOP, 3, 52, 41, 16
CONTROL "5", 135, "Button", WS_TABSTOP, 48, 52, 41, 16
CONTROL "6", 136, "Button", WS_TABSTOP, 94, 52, 41, 16
CONTROL "7", 137, "Button", WS_TABSTOP, 3, 76, 41, 16
CONTROL "8", 138, "Button", WS_TABSTOP, 48, 76, 41, 16
CONTROL "9", 139, "Button", WS_TABSTOP, 94, 76, 41, 16
CONTROL "0", 130, "Button", WS_TABSTOP, 48, 100, 41, 16
CONTROL "", 128, "Edit", WS_BORDER|WS_TABSTOP, 5, 10, 91, 12
CONTROL "<--", 129, "Button", WS_TABSTOP, 109, 10, 24, 14
CONTROL "Codigo", 145, "Button", BS_AUTOCHECKBOX|WS_TABSTOP, 51, 151, 32, 12
}