Advertisement
Guest User

Mads Lindstrm

a guest
Aug 30th, 2008
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. intEntry :: Window w -> [Prop IntEntry] -> IO IntEntry
  2. intEntry = compose $ \p ->
  3.     do intEn <- textEntry p [ processEnter := True
  4.                             , on anyKey := handleInput
  5.                             , text := "0"
  6.                             , on mouse := \evt -> do putStrLn "In intEntry mouse event handler"
  7.                                                      evtHandler <- get p (on mouse)
  8.                                                      evtHandler evt
  9.                             ]
  10. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement