On Jan 09, 2007, at 16:43 UTC, Robert Livingston wrote: > But if I create a canvas class in the IDE (code editor) like AnaClass. > > I also design a window in the IDE. > > I have not run any code so these entities are both classes (and > subclasses of window or canvas)
Correct. > Then, using the IDE, I could put 2(two) AnaClass canvases in the > (same) window. > > At this point, are those two canvases "instances" of the AnaClass > class. Right. > -- No because I have not run any code. So what? RB does a lot of work for you. You didn't write any code to create an instance of your Application subclass either; it just magically appears. Nor did you write any code to create your window, if it was set as the default window; that magically appears too. In the same way, when a window is created, all the controls are magically instantiated too. (Though there is a way to peek behind the curtain in this case, by noticing that if you implement the Constructor of your window, and fail to call Super.Window, then the controls are NOT created.) > -- But they are not two separate subclasses either are they? No, although they might be if they're control arrays, since the events for a control array are slightly different from the events as defined in your class. > But perhaps they should be considered really to be part of the window > and their methods are really now part of the methods of the window. No, they're instances of your Canvas subclass. It just so happens that their event implementations are part of the window. This is something special about events -- they can be implemented in a subclass, OR in a containing window. Best, - Joe -- Joe Strout -- [EMAIL PROTECTED] Verified Express, LLC "Making the Internet a Better Place" http://www.verex.com/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
