Re: TransferDataFromWindow never called

Robert Roebling <[email protected]> Mon, 18 Jul 2005 21:19:18 +0200
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
I anwered my self:
>
> I wrote myself:
> 
> >   Hi all,
> > 
> > in wxWidgets, it is quite important to be able to
> > override both TransferDataFromWindow and ..ToWindow.
> > It is called in each dialog and can overridden for
> > doing what the name of the methods suggest. I haven't
> > understood how to do that in wxNET. It defines a new
> > event for TransferDataFromWindow, but I'm not sure 
> > when that will get fired - nor do I know if that is
> > supposed to be the replacement for the virtual 
> > functions or not.
> 
> OK, I finally figured out how TransferDataFromWindow
> works and I wonder if anyone would be against me
> adding TransferDataToWindow in exactly the same
> way? 

Continuing my monologue, I realized that currently
wxNet's wxDialog class does not automatically 
inherit the TransferDataFromWindow method, unless
you add a #include "window.inc" or "panel.inc"
to its shadow class. I think this should be done
for at least wxPanel, wxDialog, wxFrame and
wxScrolledWindow - although all controls should
in the end have a shadow class with #include "control.inc"
etc.

  Robert



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click