Hi Mads,
Missed this one first time around.
I have something which may help somewhat. It won't compile as it
depends on an old version of the Fast Packed Sting library, but it may
give you an idea of the structure.
I'll put it into a more useable form when I finally finish working on
the wxWidgets 2.8 support, but it may help for now.
Regards
Jeremy
On 09/09/2007, Mads Lindstr=F8m <mad...@ya...> wrote:
> 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=F8m
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> wxhaskell-users mailing list
> wxh...@li...
> https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
>
|