I tried to use the SetDialogEsc( lOnOff ) function behavior the dialog defined, but not works!
- Code: Select all Expand view
setDialogEsc( .F. )
DEFINE DIALOG ... ACTIVATE oDlg
This is correct?
setDialogEsc( .F. )
DEFINE DIALOG ... ACTIVATE oDlg
#include "FiveWin.ch"
function Main()
local oDlg, cTest := Space( 10 )
SetDialogEsc( .F. )
DEFINE DIALOG oDlg TITLE "Test"
@ 2, 2 GET cTest OF oDlg
ACTIVATE DIALOG oDlg CENTERED
return nil
FUNCTION configSistem()
setDialogEsc( .F. )
DEFINE DIALOG oDlg RESOURCE "CAD_SISCFG_ATIVACAO_LOGICA" OF wndMain()
oDlg:lHelpIcon := .F.
oDlg:cargo := .F.
REDEFINE SAY PROMPT aChave[1] ID 4001 OF oDlg FONT ( getFonte( 13 ) ) COLOR rgb( 61, 73, 52 )
REDEFINE SAY PROMPT aChave[2] ID 4002 OF oDlg FONT ( getFonte( 13 ) ) COLOR rgb( 61, 73, 52 )
REDEFINE SAY PROMPT aChave[3] ID 4003 OF oDlg FONT ( getFonte( 13 ) ) COLOR rgb( 61, 73, 52 )
REDEFINE BUTTON oButton ID 4005 OF oDlg ACTION oDlg:end()
ACTIVATE DIALOG oDlg CENTERED
RETURN( NIL )
ACTIVATE DIALOG oDlg;
VALID !GETKEYSTATE( VK_ESCAPE )
James Bott wrote:Julio,
This doesn't solve the setDialogEsc() problem, but here is an alternate way to prevent the Esc key from working.
- Code: Select all Expand view
ACTIVATE DIALOG oDlg;
VALID !GETKEYSTATE( VK_ESCAPE )
Regards,
James
Antonio Linares wrote:James,
The advantage of using SetDialogEsc( lOnOff ) is that it is a global setting for your application, so you don't have to modify or to code for each dialog.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 58 guests