[wx-discuss] wxTNG: compatibility with wx2 API

Vadim Zeitlin vadim at wxwindows.org
Fri Feb 17 13:05:55 PST 2006


On Fri, 17 Feb 2006 19:04:04 +0100 Stefan Csomor <csomor at advancedconcepts.ch> wrote:

SC> >  Wait, but to be able to use wx3 API at all you'd need to 
SC> > have not only wx::DC but also wx::Window and wx::Frame and 
SC> > wx::EverythingElse. This is what I don't understand -- this 
SC> > is not at all an incremental process, you need to be able to 
SC> > compile wx3 program first.
SC> 
SC> why ? I could write eg :
SC> 
SC> MyWx2Frame::OnPaintEvent( .. )
SC> {
SC>   wxPaintDC dc2(this) ;
SC>   wx3::DC dc3 = dc2.GetWX3DC() ;
SC>   wx3::Colour transwhite( 1.0 , 1.0 , 1.0 , 0.5 ) ; // a 50 %
SC> transparent white
SC>   dc3.FillRectangle( wx::Rect( 100 , 100 , 100 , 100 ) , transwhite ) ;
SC> }

 Yes, you could do this with wxDC but try doing it with wxWindow (which you
don't just use as a local variable but have to use as child/parent of other
windows).


SC> >  But, in any case, this is not what I'm after. I want to have 
SC> > a reasonably fully functional wx3 API soon. We need this to 
SC> > show it to others, to start advertising it (let's not be 
SC> > afraid of this word), to propose it for inclusion in boost 
SC> > (if we feel brave) or next C++ standard (if we feel
SC> > crazy) and to attract more people, both users and developers, to it.

 You didn't reply to this but the above is really my main concern with your
proposal. You may have the best intentions in the world but without being
able to show a working wx3 program any time soon, we'd have a very hard
time going anywhere with it.

 Regards,
VZ


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-discuss-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wx-discuss-help at lists.wxwidgets.org





More information about the wx-discuss mailing list