Category: Technical

A VCL to FireMonkey Convertor

I have been convinced that FireMonkey provides opportunities to use Delphi in new and exciting ways. I am interested in exploring the possibilities but I also want to maintain as much as possible  of the IP that I have built up in Delphi applications to date. … Continue reading ›

Posted in FMX, Tools Tagged with: , ,

Changing the Color of a FireMonkey Edit box

The new FireMonkey components have extensive design time functionality through the style engine so the presentation of components can be easily varied by the style editor. Some of the style parameters are also included in the object properties such as Font and FontFill (the new way to change the font color) but if the object code does not expose the parameter you need how do you change the style information dynamically at runtime?… Continue reading ›

Posted in FMX 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: , , ,

Creating 3D scenes dynamically in FireMonkey

In my last post I created a wind turbine (or propeller if you like 🙂 ). When I demonstrated this wind turbine at a recent ADUG meeting here in Melbourne, Brian Watson asked whether it was possible to create objects in code and add them to a scene at run time.  … Continue reading ›

Posted in FMX 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

A use for code folding

Here’s my tip on how to use the IDE’s code folding feature for good rather than evil.… Continue reading ›

Posted in IDE, Language