tag:blogger.com,1999:blog-35681690.post5697899472117533439..comments2023-11-05T07:23:41.292ZComments on wxBlog: Another Victory in the War Against MacrosRyan Nortonhttp://www.blogger.com/profile/14772407581163137459noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-35681690.post-29149229949137532292011-07-29T12:28:23.515Z2011-07-29T12:28:23.515ZThe trouble with wxDEFINE_EVENT &c is that the...The trouble with wxDEFINE_EVENT &c is that they're defined very differently for g++ and VC7 and later and the other compilers (which lack good template support). So we probably won't be able to get rid of them until we drop VC6 support in 3.2.<br /><br />But if you don't care about these compilers you can already use<br /><br />const wxEventTypeTag EVT_FOO(wxNewEventType());<br /><br />to define a new event type EVT_FOO carrying wxFooEvent payload in your code. It's not especially elegant but can be done without macros.VZhttps://www.blogger.com/profile/08757498024167099515noreply@blogger.comtag:blogger.com,1999:blog-35681690.post-53936306831300032572011-07-29T01:57:59.459Z2011-07-29T01:57:59.459ZActually i think getting rid of wxT() was probably...Actually i think getting rid of wxT() was probably the best thing to happen in ages ;) but nice progress<br /><br />I guess one I might like would be the ability to make custom event types without using macros; but I haven't taken a look at the code so maybe I'm not being realisticAuriahttps://www.blogger.com/profile/17402179901627001771noreply@blogger.com