thanks, do you mind sharing some examples or samples?
Well, this is not something I can show in a few lines of code. I've a big project using several technologies including this functionality.
Basically, I have a class representing the model (What GUI shows), that can read or write to Database:
TCibModel = class
//Properties of GUI
...
procedure ReadFromDB();
procedure WriteToDB();
end;
Any changes in the GUI (model) needs to be updated to Database.
Then the View class is a Frame, so it can contain visual controls and you can include it in a form (like part of the GUI), something like:
TfraVista = class(TFrame)
...
procedure ConnectToDB;
...
end;
Changes in the GUI is easy to update to Database. Just send an UPDATE command.
The problem here is to update the Views (can be many) from changes in the model (DB). A simple solution is just polling with queries, but it could be a load to the DB is it's too frequently.