> I would like to know which is the right way to follow MVC pattern and > OOP on Lazarus/Free Pascal.
That's a very open ended question... MVC, MVP, MGM etc are all design patterns. They help to keep you business classes and GUI code separate. I don't use MVC, but rather Model-GUI-Mediator (MGM). For me, it's more geared towards todays more intelligent GUI toolkits - taking advantage of it's built-in event handling. It's also very easy to implement. I have implemented MGM using Lazarus's LCL with tiOPF. I have also ported that implementation to fpGUI with tiOPF. Source code and examples are available for both in the following SubVersion repositories.... tiOPF v2: http://www.tiopf.com fpGUI: http://opensoft.homeip.net/fpgui/ For more information about Model-GUI-Mediator have a look at: http://www.atug.com/andypatterns/mgm.htm Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
