From: <mis...@we...> - 2006-03-07 17:03:43
|
Hi :) I had a lot of fun with wxHaskell up to now. Now I wanted to define my own subclasses of wx-widgets. The sample-program "CustomControl.hs" was very helpful, but I still don't understand it fully. Here's a quote from its comments: >> For more complicated things, one should define a ColorBox data type instead of a simple type synonym. That's exactly what I have to do, but I don't know how. The plan is to inherit from ScrolledWindow and to hold some values in (Var ())s. Now the question is, how can I get ScrolledWindow and my Vars together in a new class? Thanks, bened |