class TXData from TData
data aOriginal init {}
method load
endclass
method load()
super:load()
acopy(::aBuffer, ::aOriginal)
return nil
#include "fivewin.ch"
function main()
local oDlg,oGet,oGet2,cVar:="Test ",cVar2:="xxx "
define dialog oDlg
@ 1,1 get oGet var cVar of oDlg ;
valid if( oGet:cargo <> oGet:varGet(), (msgInfo("Changed"),.t.), (msgInfo("Not changed"),.t.) );
oGet:cargo:= oGet:varGet()
@ 2,1 get oGet2 var cVar2 of oDlg
activate dialog oDlg centered
return nil
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL oGet, cVar := PADR( "Test", 20 )
DEFINE DIALOG oDlg
@ 1, 1 GET oGet VAR cVar
oGet:bLostFocus = { || MsgInfo( oGet:oGet:Original ) }
@ 3, 1 BUTTON "&Close";
ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL oGet, cVar := PADR( "Test", 20 )
DEFINE DIALOG oDlg
@ 1, 1 GET oGet VAR cVar valid (msgInfo( oGet:oGet:original ),.t.)
// oGet:bLostFocus = { || MsgInfo( oGet:oGet:Original ) }
@ 3, 1 BUTTON "&Close";
ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
James Bott wrote:Are you saying that it doesn't have input focus when bValid is executed?
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 64 guests