Differences between revisions 1 and 2
Revision 1 as of 2009-08-01 12:53:08
Size: 1369
Comment:
Revision 2 as of 2009-08-02 12:36:09
Size: 1489
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Assuming a multiframe application, where each opened document gets at least one view created, which is placed in a new created frame. As we know, this happens via document and view templates. The <<Dox(a2dDocumentTemplate)>> which make the connection between file extension/contents and the document object to be created in your application. After that there is the <<Dox(a2dViewTemplate)>> to create the views on that specific document. And in between follows the <<Dox(a2dViewConnector)>>, to organize how the views will be attached to the GUI by using existing or newly created windows and/or frames. == In short the application and how it is created ==

Assuming a multiframe application, where each opened document gets at least one view created, which is placed in a new created frame. Opening document happens via document and view templates. The <<Dox(a2dDocumentTemplate)>> makes the connection between file extension/contents and the document object to be created in your application. After that there the <<Dox(a2dViewTemplate)>> is used to create the views on that specific document. And during the process the <<Dox(a2dViewConnector)>> is used to organize how the views will be attached to the GUI by using existing or newly created windows and/or frames.   [[WxArt2dSamples#MultiFrame| The sample like this ]]

Closing Frames and Applications

In short the application and how it is created

Assuming a multiframe application, where each opened document gets at least one view created, which is placed in a new created frame. Opening document happens via document and view templates. The a2dDocumentTemplate makes the connection between file extension/contents and the document object to be created in your application. After that there the a2dViewTemplate is used to create the views on that specific document. And during the process the a2dViewConnector is used to organize how the views will be attached to the GUI by using existing or newly created windows and/or frames.

The sample like this

In the end we have several Frames open, which have an attached view to display part of the documents. There can be several frames having views to display parts of the same document. So what will happen when you close a frame. Often there will be two situation. When you start your application, there will be one frame, mentioned the parent frame. This frame might display all opened documents as icons. Every document opened will result in an extra frame being created, being a child frame, and results in adding an icon to the parent frame. Closing/exiting the parent frame will close all child frames, but closing a child frame does not mean exiting the application, instead only closing a view and maybe the document.

wxArt2D: ClosingDocviewParentChild (last edited 2009-08-02 22:00:20 by KlaasHolwerda)