hi to all, I have this code:
I would like that when user press TAB and exit from GET m_f1 process goes to FUNCTION subr01 and show msginfo when user do not press BtnEsc BUTTON
I try BtnEsc:lPressed but it is always FALSE
any help is appreciated
thank you
FiveWin for xHarbour 12.01 - Jan. 2012 xHarbour development power
(c) FiveTech, 1993-2012 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7
DEFINE DIALOG oDlg RESOURCE "CHGCLS" FONT oFont TITLE "Title"
REDEFINE GET o_f1 VAR m_f1 ID 101 OF oDlg COLOR CLR_BLACK,CLR_GET ;
  PICTURE "@ !!!!!!!!!!!!!!!"
  o_get[01]:setfocus()
o_get[01]:bLostFocus := { || ( subr01(@m_f1,@o_f1,@m_f2,@o_f2, @BtnEsc) )}
REDEFINE GET o_f2 VAR m_f2 ID 102 OF oDlg COLOR CLR_BLACK,CLR_GET ;
  PICTURE "@ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
REDEFINE BTNBMP BtnEsc ID 2 OF oDlg FILE "C:\chiudi.BMP" Â 2007 Â Â Â Â ;
  ACTION (oDlg:End())
ACTIVATE DIALOG oDlg ;
  CENTERED
...
FUNCTION subr01(m_f1,o_f1,m_f2,o_f2, BtnEsc)
if .not. BtnEsc:lPressed
  msginfo("run this function")
endif
Return NilI would like that when user press TAB and exit from GET m_f1 process goes to FUNCTION subr01 and show msginfo when user do not press BtnEsc BUTTON
I try BtnEsc:lPressed but it is always FALSE
any help is appreciated
thank you
FiveWin for xHarbour 12.01 - Jan. 2012 xHarbour development power
(c) FiveTech, 1993-2012 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7
FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)