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 :
- Code: Select all Expand view
if ::bLClicked != nil
# ifdef FRANKDEMONT
Eval( ::bLClicked, nRow, nCol, nFlags, Self )
# else
Eval( ::bLClicked )
# endif
endif
Then we have the same parameters as in window.prg :
- Code: Select all Expand view
METHOD LButtonDown( nRow, nCol, nKeyFlags ) CLASS TWindow
if ::bLClicked != nil
return Eval( ::bLClicked, nRow, nCol, nKeyFlags, Self )
endif
return nil
oGet:bLClicked := {|nRow,nCol,,oGet|IIF(oGet:nPos==1 .AND. "K" $ upper(::oGet: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