On Wed, Oct 22, 2008 at 4:13 PM, klaas.holwerda wrote: > Bionic Badger wrote: >> On Mon, Oct 20, 2008 at 2:12 AM, Klaas Holwerda wrote: >> >>> Bionic Badger wrote: >>> >>> >>>> So I created a wrapper class to enable the form builder to create an >>>> a2dDocumentFrame instead of a wxFrame, and it seems to have fixed the >>>> > I did add your constructor,
Thank you for your help with this. I checked it out and recompiled it to work with my current setup (removing that intermediate class to make it work), but there was a problem with it. After looking in the code, it appears the new a2dDocumentFrame constructor uses a wxFrame* for its first parameter, whereas the wxFrame constructor expects a wxWindow*. Inspecting the a2dDocumentFrame and the wxFrame interfaces and implementations revealed that a2dDocumentFrame should really be using a wxWindow* type instead of wxFrame* since it simply passes that parameter to wxFrame::Create anyway. Or does it need to be an actual wxFrame type? Also, is the parentFrame boolean parameter even necessary? Couldn't that be tied directly to whether the wxWindow* parameter is non-NULL? Eliminating that parameter could allow a2dDocumentFrame to act almost exactly like a wxFrame but with a2d extensions. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Wxart2d-users_dev mailing list Wxart2d-users_dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev