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)

Floating button

A floating action button represents the main action of a form. This performs the main or most common action on a screen. It appears in front of the entire contents of the screen, usually as a circular shape with an icon in the center. They come in three types: regular, mini, and extended. Two floating buttons can be used if they perform different but equally important actions.

A floating button usually triggers an action on the current screen or performs an action that creates a new screen.

They promote important, constructive activities, such as the following:

  • Create
  • Favorite
  • Share
  • Start a process

Let's create a floating button on our system using native components:

  1. Add a TCircle component (search Circle) to the form. This component must be linked to the form and not to any existing layout or rectangle.
  2. Position your new TCircle to the right of the form...