Re: EVT_XXXX macros again

"J. Perkins" <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
Delegates are how you handle callbacks in C#. However, .NET 2.0 will 
introduce anonymous functions and all kinds of cool new generics stuff, 
so it may be possible then.

Jason
379

Robert Roebling wrote:
> I just notices that there are already EVT_XXX macros 
> in EventHandler.cs. The current syntax is like this,
> unless I am mistaken
>   EVT_MENU( ID_QUIT, new EventListener(OnQuit) );
> which is already quite nice. I tried to reduce the
> syntax further to just
>   EVT_MENU( ID_QUIT, OnQuit );
> but had no luck, since I couldn't find the parameter
> type of a method/function which I would pass as the
> second parameter. Is that possible at all?





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.