CompuServe Thread

#Doc-View Model Quesion

2 messages in this thread
#30514From: Jeremy WiseJul 11, 1994 11:06 AM
I'm not quite sure how to fit document-view design to the folowing example. Maybe someone has a suggestion. Suppose I wish to design a software package to display a balance sheet for company cash flow. I want the user to be able to open a window & display spreadsheet info for a particular company allowing as many such windows to be open as the user wishes. Then, when the user clicks on a particular button, I want the program to display a graph displaying the quarterly performance for all the spreadsheet balance sheets displayed. The 1st part seems to fit doc-view design very nicely. I use the MDI interface, one balance sheet file associated with each view. But I don't see how to fit the graph of all the data into the design. Any suggestions?? Thanks in advance
#30570From: Steve DiricksonJul 11, 1994 6:49 PM
<< I'm not quite sure how to fit document-view design to the folowing example. Maybe someone has a suggestion. Suppose I wish to design a software package to display a balance sheet for company cash flow. I want the user to be able to open a window & display spreadsheet info for a particular company allowing as many such windows to be open as the user wishes. Then, when the user clicks on a particular button, I want the program to display a graph displaying the quarterly performance for all the spreadsheet balance sheets displayed. The 1st part seems to fit doc-view design very nicely. I use the MDI interface, one balance sheet file associated with each view. But I don't see how to fit the graph of all the data into the design. Any suggestions??>> Sounds to me like the graph would be a view of a new document type, that document being one that obtains its data from the open documents rather than from a file or database. So, when the user wants to show the graph, you'd create a new document of the CCombinedInfo class through its template, and the CCombinedGraphView would be the view in that template. The new CCombinedInfo document would iterate through the open CCompanyInfo documents, asking for the info it needs from each one.