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

2015-02-25 Thread Kristof Bastiaensen
On 23-02-15 15:34, Henk-Jan van Tuyl wrote: > On Mon, 10 Mar 2014 15:25:59 +0100, Kristof Bastiaensen > wrote: > >> On 10-03-14 14:13, Henk-Jan van Tuyl wrote: >>> On Sun, 09 Mar 2014 20:10:28 +0100, Kristof Bastiaensen >>> wrote: >>> I need to use a graphicpath to draw bezier curves, but w

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

2015-02-23 Thread Henk-Jan van Tuyl
On Mon, 10 Mar 2014 15:25:59 +0100, Kristof Bastiaensen wrote: > On 10-03-14 14:13, Henk-Jan van Tuyl wrote: >> On Sun, 09 Mar 2014 20:10:28 +0100, Kristof Bastiaensen >> wrote: >> >>> I need to use a graphicpath to draw bezier curves, but wxhaskell >>> doesn't >>> allow >>> me to create a g

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

2014-03-10 Thread Kristof Bastiaensen
On 10-03-14 14:13, Henk-Jan van Tuyl wrote: > On Sun, 09 Mar 2014 20:10:28 +0100, Kristof Bastiaensen > wrote: > >> I need to use a graphicpath to draw bezier curves, but wxhaskell doesn't >> allow >> me to create a graphicscontext from a paint event. > : > : >> I am willing to help coding this f

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

2014-03-10 Thread Henk-Jan van Tuyl
On Sun, 09 Mar 2014 20:10:28 +0100, Kristof Bastiaensen wrote: > I need to use a graphicpath to draw bezier curves, but wxhaskell doesn't > allow > me to create a graphicscontext from a paint event. : : > I am willing to help coding this functionality. It's always great if someone is willing t

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

2014-03-10 Thread Kristof Bastiaensen
I have made some changes on my github fork, which I like better: paintRaw now has type: paintRaw :: Event w (PaintDC () -> Rect -> [Rect] -> IO ()) So you can use "graphicsContextCreate paintDC". I removed my new handler paintRawContext, since it isn't needed. This should be mostly compatible wi

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