> Can someone explain why the App class and the Frame
> class are two separate things? What's the
The app represents the application as a whole;
you _must_ create one and only one app instance,
while you can create any number of frames; a frame
is a top level window, an app does not represent any
type of window.
> significance of this? What does it allow you to do?
> So far it seems to only be making it harder for me to
> understand. ;-) I'm not clear on which one would load
> the contanstants, events, etc. and which one would
> handle the actual event subroutines.
In general an app does not have any event handlers ( you could
add a default event handler to the wxApp that processes otherwise
unhandled events, but this is rarely necessary ); in general event
handlers are or in the control that generates them ( for all kinds
of events ), or in one of their ancestors ( for
wxCommandEvent-derived events, like button clicks )
Hope it is clerarer now
Mattia
|