[wx-dev] Re: Events sent programmatically

Stefan.Neis at t-online.de Stefan.Neis at t-online.de
Fri Sep 1 02:07:10 PDT 2006


      Hi,

> SetSelection( args )
> {
> #      if defined(wxCOMPAT26)
> SetSelectionWithEvent(args);
> #      else
> SetSelectionWithoutEvent(args);
> #      endif // wxCOMPAT26
> }
> 
> Not sure about the pp-token name, but you get the gist. 

If you look back, something similar has been suggested near the
start of the thread. The big problem with that approach is that
when switching from something where wxCOMPAT26 is defined
by default to a newer version where it is no longer defined,  your
programs still compile but misbehave at run-time, which is a big
no-no.

          Regards,
                      Stefan








More information about the wx-dev mailing list