From: Mads <mad...@ya...> - 2007-09-09 17:31:30
|
Hi all I am trying to create a custom control. Thus I have looked at this example http://darcs.haskell.org/wxhaskell/samples/wx/CustomControl.hs . But it does not really help me. I also tried the WxWidgets site and it did not help much either. What I would like is to take two textCtrl-s (or other controls) and compose them into one bigger control. And still "inheriting" all the functions/classes associated with `Window a`. And the new control should also implement some classes which `Window a` do not, like Commanding. I can compose two textCtrl-s, but not while "inheriting" Window. Thus I have to implement all the classes Window implements. And even worse, I can see no way of making my custom control work with functions like `focusOn`, as they are defined in a class. Anybody have such an example or some pointers? Greetings, Mads Lindstrøm |