Book Image

Delphi Programming Projects

By : William Duarte
Book Image

Delphi Programming Projects

By: William Duarte

Overview of this book

Delphi is a cross-platform programming language and software development kit that supports rapid application development for Microsoft Windows, Apple Mac OS X, Android, and iOS. With the help of seven practical projects, this book will guide you through the best practices, Delphi Run-Time Library (RTL) resources, and design patterns. Whether you use the Visual Component Library (VCL) or FireMonkey (FMX) framework, these design patterns will be implemented in the same way in Delphi, using Object Pascal. In the first few chapters, you will explore advanced features that will help you build rich applications using the same code base for both mobile and desktop projects. In addition to this, you’ll learn how to implement microservice architecture in Delphi. As you get familiar with the various aspects of Delphi, you will no longer need to maintain source code for similar projects, program business rules on screens, or fill your forms with data access components. By the end of this book, you will have gained an understanding of the principles of clean code and become proficient in building robust and scalable applications in Delphi.
Table of Contents (9 chapters)

Working with animations

Animations on FireMonkey are awesome. Since they are easy to implement, they are perfectly adaptable to the movement style of Material Design.

The following table provides some examples of animations in FireMonkey:

Type of property Animation Class
Any property that is an integer. TIntAnimation
Any property that is a real number. TFloatAnimation
Location of the component defined by a TBounds property. TRectAnimation
Any string or integer property that contains a color. TColorAnimation
A gradient (type TGradient). TGradientAnimation
A bitmap picture. TBitmapAnimation

An example of an animation of Material Design is the card. How about we include a card that expands and collapses when requested by the user? For this type of animation, we will work with layouts and rectangles, in addition to a very cool shadow effect.

Let's put the...