Here is the file to add ScreenDC. I noticed that it inherits from wxDC which is what the docs show but the headers for each platform are much different: - Mac,MSW,os2,motif,palmos all inherit from wxWindowDC - X11,GTK inherit from wxPaintDC - MGL, cocoa inherit from wxDC After saying that on Windows it still work inheriting from wxDC so I left it for now, any thoughts? Sean _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
On 23/08/05, Sean Long <sean.m.long@gmail.com> wrote:> Here is the file to add ScreenDC. I noticed that it inherits from wxDC > which is what the docs show but the headers for each platform are much > different:The wxWidgets 2.6.1 manual says that wxScreenDC inherits directly from wxDC. If other ports inherit from wxDC descendants, then it would only be a convenience matter for that port. Dave. -- "Computer games don''t affect kids; I mean if Pac-Man affected us as kids, we''d all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." (Kristian Wilson, Nintendo Inc, 1989)
Sean Long wrote:> Here is the file to add ScreenDC.Commmitted.> I noticed that it inherits from wxDC > which is what the docs show but the headers for each platform are much > different: > > - Mac,MSW,os2,motif,palmos all inherit from wxWindowDC > - X11,GTK inherit from wxPaintDC > - MGL, cocoa inherit from wxDC > > After saying that on Windows it still work inheriting from wxDC so I > left it for now, any thoughts?I think I agree with Dave Symonds that we should leave the parent as DC, at least for now. The only issue would be if someone wanted to override some virtual WindowDC or PaintDC methods in a subclass of ScreenDC. Otherwise, everything should work fine using DC as the parent. I added a note to the README about this. Thanks, Kevin