Category: RTL

Using LiveBindings to Connect the UI to Objects

After listening in on the recent Embarcadero webinar Understanding RAD Studio LiveBindings with Cary Jensen I asked a few questions in the Q&A session, like how to notify the framework of changes to property values from within a property setter. I had a keen interest in the webinar after experimenting with LiveBindings as I belive they have great potential.… Continue reading ›

Posted in RTL, VCL Tagged with: ,

LiveBindings Part 2 – Displaying database data in a VCL (or FireMonkey) application

A perhaps not so well known fact about LiveBindings is that they can be used in VCL as well as FireMonkey applications. The traditional VCL data-aware controls are still available though and for reasons that will quickly become apparent, I wouldn’t advise ripping out your VCL TDBEdits just yet.… Continue reading ›

Posted in FMX, RTL, VCL Tagged with: , , ,

LiveBindings Part 1 – Displaying database data in a FireMonkey application

This is the start of an in-depth series on the new LiveBindings technology found in Delphi XE2. At its most basic level LiveBindings is the mechanism provided for FireMonkey applications to display and edit data from a database on screen, a job that in the VCL is traditionally done with data-aware controls.… Continue reading ›

Posted in FMX, RTL Tagged with: , ,

Rolling your own Dependency Injection, Part two

In Part 1 we covered the beginnings of rolling your own Dependency Injection framework as an alternative to using the Delphi Spring Framework. We discussed the patterns and objects involved and described using RTTI to perform the actual injection. Now we’ll look at an example of using DI to inject logging functionality into an object.… Continue reading ›

Posted in Coding Techniques, RTL

Rolling your own Dependency Injection

What if you want to employ the Dependency Injection pattern in your application, but don’t want to use a third party framework for it?… Continue reading ›

Posted in Coding Techniques, RTL