c# accessibility to EvtHandler?

Vadim Zeitlin vadim at wxwindows.org
Sun Oct 22 13:38:36 PDT 2006


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/





More information about the wx-users mailing list