Hi Mark,

a DC instance is provided by the paint event. Thus you can write something like the following:

    let drawScene dc _ = do  ...
    drawingPanel <- panel p [on paint := drawScene]

Best Regards,

I'm trying to learn how to use wxHaskell and I want to try drawing some simple objects. However, functions like circle require a (DC a) argument, and I don't know how to make a DC so I can't get anything to work. Does anyone have, say, a list of examples of how to make a (DC a)?
Mark Norrish
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users