Hello,
I try :
oGet[3]:bLClicked := {|nRow,nCol,,oGet|IIF(oGet:nPos==1 ,tracelog(nRow,nCol,oGet:nPos),)}
And got a error , oGet seems to be nil
So we have to change the method :
Then we have the same parameters as in window.prg :
oGet:bLClicked := {|nRow,nCol,,oGet|IIF(oGet:nPos==1 .AND. "K" $ upper(::Picture),oGet:Refresh(),)}
Using this block PICTURE "@K" seems to work also when we use the mouse.
Only one problem : When we move in the same get (i.e. from second character to first character) , the K-clausule should not be activated , refresh not called.
Any Idea ?
Frank
I try :
oGet[3]:bLClicked := {|nRow,nCol,,oGet|IIF(oGet:nPos==1 ,tracelog(nRow,nCol,oGet:nPos),)}
And got a error , oGet seems to be nil
So we have to change the method :
if ::bLClicked != nil
# ifdef FRANKDEMONT
Eval( ::bLClicked, nRow, nCol, nFlags, Self )
# else
Eval( ::bLClicked )
# endif
endifThen we have the same parameters as in window.prg :
METHOD LButtonDown( nRow, nCol, nKeyFlags ) CLASS TWindow
if ::bLClicked != nil
return Eval( ::bLClicked, nRow, nCol, nKeyFlags, Self )
endif
return niloGet:bLClicked := {|nRow,nCol,,oGet|IIF(oGet:nPos==1 .AND. "K" $ upper(::Picture),oGet:Refresh(),)}
Using this block PICTURE "@K" seems to work also when we use the mouse.
Only one problem : When we move in the same get (i.e. from second character to first character) , the K-clausule should not be activated , refresh not called.
Any Idea ?
Frank