Hello all!
I have a little problem with event handlers: on the following code, when the 
code of the event TreeItemRightClick is processed, the code of the event 
TreeSelChanged is processed too. (For precision, the code of TreeSelChanged is 
executed first)
It is possible to execute only the first one (TreeItemRightClick)?

Thanks very match for your aide!
Best regards,
Rosario

onTreeEvent :: TreeCtrl a -> ListCtrl b -> EventTree -> IO () 
onTreeEvent t l event
  = case event of
      TreeItemRightClick item | treeItemIsOk item
        -> do ...
              propagateEvent
      TreeSelChanged item olditem  | treeItemIsOk item
        -> do ...
              propagateEvent

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to