Code: Select all
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 Nil
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