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
|