About Doc/View relation : Vc++ _Plz Help
-
What is the relationship between Doc and View 1)One to Many 2)One to One 3)Many to Many 4)Many to One Choose the Correct One ? ( This is TCS Interview Question) Praveen .C
-
a document and a view are the same. a Frame can contain several Docs/Views...
TOXCCT >>> GEII power
[toxcct][VisualCalc]are you certain ? a document is not contained in a frame, it's a data class. In the Doc-View Architecture, a view is the representation of the data in the document. A document can have multiple views attached to it, in as many frame window as you wish.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
What is the relationship between Doc and View 1)One to Many 2)One to One 3)Many to Many 4)Many to One Choose the Correct One ? ( This is TCS Interview Question) Praveen .C
one Doc can have many views one View can be associated with only one doc one App can have many docs. If the app is SDI, can display only one view of one doc at a time If the app is MDI, can display many views of many docs at a time
-
are you certain ? a document is not contained in a frame, it's a data class. In the Doc-View Architecture, a view is the representation of the data in the document. A document can have multiple views attached to it, in as many frame window as you wish.
Maximilien Lincourt Your Head A Splode - Strong Bad
did i misundertood this ?
"A frame-based application uses a concept known as the Document/View Architecture.
This allows the frame to serve as a place holder for other parts of an application
(such as the document and the view)."
TOXCCT >>> GEII power
[toxcct][VisualCalc] -- modified at 9:24 Wednesday 26th October, 2005 -
a document and a view are the same. a Frame can contain several Docs/Views...
TOXCCT >>> GEII power
[toxcct][VisualCalc]cant a document have multiple views??, for example, a data that is available in the DOC can be viewed as a chart in one view and in another view the same can be viewed as graph. right??:~ He is like a one-legged man in a bum kicking competition. -Novjot Sidhu --[v]--
-
did i misundertood this ?
"A frame-based application uses a concept known as the Document/View Architecture.
This allows the frame to serve as a place holder for other parts of an application
(such as the document and the view)."
TOXCCT >>> GEII power
[toxcct][VisualCalc] -- modified at 9:24 Wednesday 26th October, 2005 -
one Doc can have many views one View can be associated with only one doc one App can have many docs. If the app is SDI, can display only one view of one doc at a time If the app is MDI, can display many views of many docs at a time
georgemarios wrote:
If the app is SDI, can display only one view of one doc at a time
Are you sure about this point ? I think that in a SDI the limitation is that you can have only one document but several views can be used to display the document... Am I wrong ?:doh:
-
What is the relationship between Doc and View 1)One to Many 2)One to One 3)Many to Many 4)Many to One Choose the Correct One ? ( This is TCS Interview Question) Praveen .C
-
cant a document have multiple views??, for example, a data that is available in the DOC can be viewed as a chart in one view and in another view the same can be viewed as graph. right??:~ He is like a one-legged man in a bum kicking competition. -Novjot Sidhu --[v]--
yes - A single document can have many views open on it simultaneously. Not all views need to be the same type for any given document. I can have 'spread sheet' document, but a view with a spreadsheet, a view with some charts, and another view with statistics all open on the 'spread sheet' document's data.
-
georgemarios wrote:
If the app is SDI, can display only one view of one doc at a time
Are you sure about this point ? I think that in a SDI the limitation is that you can have only one document but several views can be used to display the document... Am I wrong ?:doh:
ooops, my mistake certainly, you can have several views of the same doc in SDI at the same time (using splitters for example)
-
ooops, my mistake certainly, you can have several views of the same doc in SDI at the same time (using splitters for example)
Blast! And right after I gave you a 5 for your very short and very precise answer. SDI: Single view, Single document. Using splitters does not change that, each split reprsents a seperate view. Which would make it an MDI. Of course there are ways around that minor detail. INTP Every thing is relative...
-
Blast! And right after I gave you a 5 for your very short and very precise answer. SDI: Single view, Single document. Using splitters does not change that, each split reprsents a seperate view. Which would make it an MDI. Of course there are ways around that minor detail. INTP Every thing is relative...
thanks for the 5 well, think of a 3d modeler like 3dmax you have the same doc shown in 4 diferent views (top, left, front and perspective). Its still the same document. Many views at the same time doesn't make the app MDI, MDI=multi-doc interface.... A splitter can be used in both SDI and MDI. The difference is that in SDI you put it in CMainFrame whereas in MDI you putit in CMDIChildWnd. Still, I may be wrong. Please, somebody correct me...
-
thanks for the 5 well, think of a 3d modeler like 3dmax you have the same doc shown in 4 diferent views (top, left, front and perspective). Its still the same document. Many views at the same time doesn't make the app MDI, MDI=multi-doc interface.... A splitter can be used in both SDI and MDI. The difference is that in SDI you put it in CMainFrame whereas in MDI you putit in CMDIChildWnd. Still, I may be wrong. Please, somebody correct me...
Alright, you are correct! I was thinking in terms of how MFC uses it (thru the wizards), I sort of spaced on the fact that we still have to add those other views manualy and can show them via splitters (the tricks I mension earlier). SDI realy means a single document at time, not necessarily a single view. I was thincking in terms of having mutiple views in multiple windows, which SDI does not support. Thanks for the readjustment! INTP Every thing is relative...