Veja no exemplo abaixo quando eu teclo "ESC" no GET ele me retorna a tecla pressionada. Já no COMBOBOX isto não está funcionando. Como fazer isto funcionar ?
Code: Select all | Expand
#include "fivewin.ch"function main() local oDlg, cCombo := "2", oCombo, oGet, cGet := space(10) local aItems := { "1", "2", "3" } DEFINE DIALOG oDlg FROM 2, 2 TO 18, 60 TITLE "Test" ; STYLE nOr( DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, 4 ) @ 1, 1 get oGet var cGet SIZE 50, 12 oGet:bkeydown := { |nKey| msgstop( nKey ) } @ 2, 2 COMBOBOX oCombo var cCombo ITEMS aItems SIZE 200, 100 oCombo:bkeydown := { |nKey| msgstop( nKey ) } ACTIVATE DIALOG oDlg CENTEREDreturn nil
Obrigado,
Rossine.