Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Fearless Cross-Platform Development with Delphi

You're reading from   Fearless Cross-Platform Development with Delphi Expand your Delphi skills to build a new generation of Windows, web, mobile, and IoT applications

Arrow left icon
Product type Paperback
Published in Oct 2021
Publisher Packt
ISBN-13 9781800203822
Length 544 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
David Cornelius David Cornelius
Author Profile Icon David Cornelius
David Cornelius
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Preface 1. Section 1: Programming Power
2. Chapter 1: Recent IDE Enhancements FREE CHAPTER 3. Chapter 2: Delphi Project Management 4. Chapter 3: A Modern-Day Language 5. Section 2: Cross-Platform Power
6. Chapter 4: Multiple Platforms, One Code Base 7. Chapter 5: Libraries, Packages, and Components 8. Chapter 6: All About LiveBindings 9. Chapter 7: FireMonkey Styles 10. Chapter 8: Exploring the World of 3D 11. Section 3: Mobile Power
12. Chapter 9: Mobile Data Storage 13. Chapter 10: Cameras, the GPS, and More 14. Chapter 11: Extending Delphi with Bluetooth, IoT, and Raspberry Pi 15. Section 4: Server Power
16. Chapter 12: Console-Based Server Apps and Services 17. Chapter 13: Web Modules for IIS and Apache 18. Chapter 14: Using the RAD Server 19. Chapter 15: Deploying an Application Suite 20. Assessments 21. Other Books You May Enjoy

Styling your applications with ease

If your application contains many forms, putting these StyleBook components on each form will quickly discourage many programmers from using styles. Fortunately, there are three other ways to centrally manage styles in a Delphi project that will make this task easier. Let's take a look at them.

Quickly setting a single, application-wide style

The first and simplest way to style your entire application is to drop a TStyleBook component onto any form or data module in your application, load it up with the style of your choice, as we've done earlier in this chapter, and then set its UseStyleManager property to True. As soon as that component is created, it calls a global TStyleManager class, which styles every active form. If your form is not auto-created when the application starts up, no style will be applied until that form is created – at which point every form is immediately styled.

Note

If you have more than one StyleBook...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime