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