Readme.doc

MVC, Model View Controller

Freeware.

100% source code,  demo application.

Model view controller concept is like document/view of microsoft. Intention is to split the data from the display. By using these components you can update the data and then the (0 .. n) views can be updated automatically.

Included Components/Classes

TObservable:
        Component base class for a data store

TCounterModel
       example of a derived class from TObservableComponent

TObserver
       class which can be instantiated with a TObservableComponent and update procedure

TObservableComponent
       component which can be put on form which needs update event

Demo application:

TCounterView
       Form with increment,decrement and reset button and display of counter value
TForm1
       mainform with counter display and holds the TCounterModel and a TObserverComponent

Installation
       open mvc.dpk with file/open
       compile and install the package
       make sure that the directory where the files are located is in the library path         (tools/environment options/library)

to run the demo
       open mvcdemo.dpr and press run.


history
1.0  04-12-1998 first release
1.1  28-12-1998 fixed bug regarding destroy: inherited destroy was missing for TObservableComponent.


for comments/bugs in these components:

Frans Bouwmans
[email protected]