Re: [wxhaskell-devel] using graphicscontext inside a paint event

2014-03-09 Thread Kristof Bastiaensen
I implemented this idea of adding a new paint event handler: https://github.com/kuribas/wxHaskell/commit/a779f8e7e34fe03822f380c4cdd1aa8a9ed97e81 I could be tidied up, because I duplicated a lot of code... Regards, Kristof Bastiaensen On 09-03-14 20:10, Kristof Bastiaensen wrote: > Hi, > > I nee

[wxhaskell-devel] using graphicscontext inside a paint event

2014-03-09 Thread Kristof Bastiaensen
Hi, I need to use a graphicpath to draw bezier curves, but wxhaskell doesn't allow me to create a graphicscontext from a paint event. The reason is the type of the function: graphicsContextCreate :: WindowDC a -> IO (GraphicsContext ()) while the paint event callback takes a DC () as argument,