Re: Virtual aka overridable
Xenomorph <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <1083317483.4481.7.camel@dellkiste> |
Am Fr, den 30.04.2004 schrieb Michael S. Muegel um 9:38: > Anyway, for wx.NET how has it been determined when to make a method > overridable or not? Normally when a wxWidgets method is virtual ( header file ) the same wx.NET method should also be virtual. But sometimes you just forget to add virtual... :) > It seems very arbitrary as to whether methods are > declared virtual (overridable). I was just working on a sub-class of > StaticBitmap and noted that Bitmap() is overridable but Cursor() is not! > > Of course I can go into CVS and fix this. But I'd like to better understand > how this decision is being made and if some cleanup work is needed. Yes some cleanup work is needed definitely :) If you have problems to add or change pure virtual methods, callback or abstract methods take a look at Grid.cs/grid.cxx, Dnd.cs/dnd.cs, Font.cs/font.cs, Printer.cs/printer.cxx, etc... Greetings Alexander Olk ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click