c# accessibility to EvtHandler?

Gabor Tjong A Hung g.v.tjongahung at gmail.com
Sun Oct 22 13:41:33 PDT 2006


Sorry my bad, I meant eventhandler.
I cannot create a subclass of the eventhandler

On 10/22/06, Vadim Zeitlin <vadim at wxwindows.org> wrote:
>
> On Sun, 22 Oct 2006 22:30:03 +0200 Gabor Tjong A Hung <
> g.v.tjongahung at gmail.com> wrote:
>
> GTAH> handling the event wasn't the problem, creating it was the problem.
>
> Sorry, I don't understand why do you have to create the event. I didn't
> see where did you do it in your code neither.
>
> GTAH> You see, if a constructor is internal(even stricter than
> GTAH> public/protected/private), the consturctor code can only be seen by
> GTAH> that class.
>
> I actually believe it's ok, the user code shouldn't need to create the
> events, they're only generated by wx itself.
>
> GTAH> Thus making a subclass is impossible since for the outside world the
> GTAH> constructor cannot be called.
>
> This can potentially be problematic but in this case I don't see why would
> you need to derive from any event class neither.
>
> GTAH> and as for the c# mailing list. It doesn't seem to exist, I'm slowly
> GTAH> starting to think that I'm the only wxwidgets.net user
>
> It doesn't seem to be very active but what about
>
>         http://news.gmane.org/gmane.comp.lib.wxwindows.wxnet
>
> and other lists mentioned at
>
>         http://wxnet.sourceforge.net/community.html
>
> ?
>
> Good luck,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
>                http://www.tt-solutions.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>


-- =

Success is dependent on effort.
Sophocles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20061022/ab6=
c68b6/attachment.htm


More information about the wx-users mailing list