Book Image

Expert Delphi - Second Edition

By : Marco Cantù, Paweł Głowacki
Book Image

Expert Delphi - Second Edition

By: Marco Cantù, Paweł Głowacki

Overview of this book

Master Delphi, the most powerful Object Pascal IDE and versatile component library for cross-platform native app development, by harnessing its capabilities for building natively compiled, blazingly fast apps for all major platforms, including Android, iOS, Windows, Mac, and Linux. Expert Delphi begins with a quick overview of Delphi, helping you get acquainted with the IDE and the Object Pascal language. The book then quickly progresses to more advanced concepts, followed by the architecture of applications and the FireMonkey library, guiding you through building server-side services, parallel programming, and database access. Toward the end, you’ll learn how to integrate your app with various web services and deploy them effectively. By the end of this book, you’ll be adept at building powerful, cross-platform, native apps for iOS, Android, Windows, and macOS—all from a single code base.
Table of Contents (21 chapters)
Free Chapter
1
Part 1: Building Blocks
6
Part 2: Going Mobile
12
Part 3: From Data to Services
19
Index

Working with inherited views

When we design a form, it is the same for all platforms, form factors, and orientations. While you can use layouts, alignments, and anchors to make the form flexible, the differences in screen resolution and layout between different devices are generally very significant and had to accommodate.

By changing the platforms of a FireMonkey form, we can preview what the form is going to look like on different platforms, but the design remains the same. To address this problem, the FireMonkey Form Designer allows us to define inherited views that are specific to a given platform and the form factor. Next to the Style combo box at the top of the Form Designer, there is another combo box called View. Using it, we can add additional form files to our form that are specific to a given platform or a specific form factor.

Every form always has a built-in Master view. From the list, we can add additional views, as you can see in Figure 7.18.

Figure 7.18: Available views in the FireMonkey Form Designer ...