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.  To help preserve my current code I embarked on converting the basic functions I currently use to compile under FireMonkey projects and when this required form conversion (Utility Dialogs) I fashioned a DFM to FMX converter Continue reading

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

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.

We’re going to build the same application as we did in part 1 but for VCL. You might be tempted to skip over this tutorial but I’d advise against it. Due to a lack of features in the LiveBindings design-time support for VCL there are a lot more manual steps we have to do and these steps are also very applicable for FireMonkey. Also what you’ll learn in this tutorial will help you when we move onto more complex and interesting LiveBinding uses. Continue reading

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.  I said it was – never having tried it (!) – so this is a post to show that it is possible and which will allow the user to “paint” simple 3D objects onto a landscape by holding the left mouse button down and moving the mouse around. Continue reading

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. FireMonkey however has no data-aware controls, Continue reading