Article View: comp.lang.pascal.delphi.components.usage
Article #15Re: Design patterns in the modern IDE (Delphi, MFC, etc.)
From: L.J. Wischik
Date: Fri, 26 Feb 1999 00:00
Date: Fri, 26 Feb 1999 00:00
22 lines
2199 bytes
2199 bytes
>Secondly - I am particularly interested in the MVC >(Model/View/Controller) >architectural pattern and how to implement it in a modern >environment like Delphi. I've just implemented a set of model-view-controller things in my application. It's great fun building these patterns with so-called non-visual controls (by which they mean that they're visible at design-time but not at run-time). So normally you'd write out the code for each of the parts of the MVC. But in Delphi you plonk down a 'model' component, plonk down a 'controller' component and connect up its properties, and plonk down a visual 'view' component and connect up its properties and that's it. Delphi already provides 'free-notification' stuff which helps a lot with this sort of peer-object-arrangement but you'll have to do the change-notification stuff yourself. And yes, you're correct that the database data-aware controls already implement this. -- Lucian Wischik, Queens' College, Cambridge CB3 9ET. www.wischik.com/lu
Technical Details
Message-ID:
<7b54bh$kqt$1@pegasus.csx.cam.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36D493F5.50595534@netspace.net.au> <36d5bfa5.0@nemo.idirect.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb0ea,13afa353adbef604 X-Google-Attributes: gidfb0ea,public X-Google-Thread: 112b07,de053e35de59c6e8 X-Google-Attributes: gid112b07,public X-Google-Thread: 1108a1,13afa353adbef604 X-Google-Attributes: gid1108a1,public X-Google-Thread: f973b,13afa353adbef604 X-Google-Attributes: gidf973b,public X-Google-Thread: fe2ce,de053e35de59c6e8 X-Google-Attributes: gidfe2ce,public X-Google-Thread: 109fba,13afa353adbef604 X-Google-Attributes: gid109fba,public X-Google-Thread: 10baee,13afa353adbef604 X-Google-Attributes: gid10baee,public From: ljw1004@cus.cam.ac.uk (L.J. Wischik) Subject: Re: Design patterns in the modern IDE (Delphi, MFC, etc.) Date: 1999/02/26 Message-ID: <7b54bh$kqt$1@pegasus.csx.cam.ac.uk> X-Deja-AN: 448565131 References: <36D493F5.50595534@netspace.net.au> <36d5bfa5.0@nemo.idirect.com> Organization: University of Cambridge, England Newsgroups: comp.lang.pascal.delphi.components.usage,comp.lang.pascal.delphi.misc,comp.lang.pascal.delphi.components.writing,comp.object,comp.lang.c++,borland.public.delphi.vcl.components.using,borland.public.delphi.vcl.components.writing