Por medio de este codigo:
- Code: Select all Expand view
- oTree:bChanged := {|oTree,oItem| ;
oItem := oTree:GetSelected(), ;
If( oItem # nil .and. ValType( oItem:cargo ) == "B", Eval( oItem:cargo ), nil ) }
ejecuto una accion cuando el Item es seleccionado, pero yo quisiera que se evaluara solo si se ejecutó un click o un Enter.
Lo del numero de Item lo necesito, debido a que cuando el focus regresa al Tree, no se puede ejecutar nuevamente la accion que se encuentra en el cargo sin mover el seleccionador a otro Item, por lo necesito moverlo un Item atras o adelante y devolverlo a su posicion original; ahora solo puedo moverlo al primer Item usando oTree:GoTop()