With this book, you will gain valuable and practical knowledge of the latest functionalities of Delphi. Starting with the foundations, you will work on your VCL application, customize the TDBGrid, and configure your runtime class using RTTI. Going forward, you will build on this foundation and deploy FireMonkey to go cross-platform or even call FireMonkey from a VCL project, and you will fully understand how you can include Delphi on your server. Finally, you will use App Tethering, call Android and iOS SDK classes, and even use the Android TextToSpeech engine to add sounds to your phone! With this learning resource at your side, you will acquire all that a RAD Studio developer needs to know about Delphi in one complete, informative guide.

- 328 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
Delphi Cookbook
About this book
Trusted byĀ 375,005 students
Access to over 1 million titles for a fair monthly price.
Study more efficiently using our study tools.
Information
Delphi Cookbook
Table of Contents
Delphi Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Delphi Basics
Introduction
Changing your application's look and feel with VCL styles and no code
Getting ready
How to do it...
How it worksā¦
There's more...
Changing the style of your VCL application at runtime
Getting ready
How to do itā¦
How it worksā¦
There's more...
Customizing TDBGrid
Getting ready
How to do itā¦
How it worksā¦
There's more...
Using the owner's draw combos and listboxes
Getting ready
How to do itā¦
How it worksā¦
There's more...
Creating a stack of embedded forms
Getting ready
How to do it...
How it works...
There's more...
Manipulating JSON
Getting ready
How to do itā¦
There's more...
Manipulating and transforming XML documents
Getting ready
How to do itā¦
How it worksā¦
There's more...
I/O in the twenty-first century ā knowing streams
Getting ready
How to do itā¦
There's more...
Putting your VCL application in the tray
Getting ready
How to do itā¦
How it worksā¦
There's more...
Creating a Windows service
Getting ready
How to do itā¦
There's more...
Using the TService.LogMessage method
Associating a file extension with your application on Windows
Getting ready
How to do itā¦
There's more...
2. Become a Delphi Language Ninja
Introduction
Fun with anonymous methods ā using higher-order functions
Getting ready
How to do it...
There's more...
Writing enumerable types
Getting ready
How to do it...
There's moreā¦
See also
RTTI to the rescue ā configuring your class at runtime
Getting ready
How to do it...
There's moreā¦
See also
Duck typing using RTTI
Getting started
How to do it...
There's moreā¦
Creating helpers for your classes
Getting ready
How to do it...
There's more...
See also
Checking strings with regular expressions
Getting started
How to do it...
There's more...
3. Going Cross Platform with FireMonkey
Introduction
Giving a new appearance to the standard FireMonkey controls using styles
Getting ready
How to do itā¦
How it works...
There's moreā¦
Creating a styled TListBox
Getting started
How to do itā¦
How it works...
There's moreā¦
Impressing your clients with animations
How to do itā¦
How it works...
There's moreā¦
Using master/details with LiveBindings
Getting started
How to do itā¦
How it works...
There's moreā¦
Showing complex vector shapes using paths
Getting started
How to do itā¦
How it works...
There's more...
Using FireMonkey in a VCL application
Getting started
How to do it...
How it worksā¦
There's moreā¦
4. The Thousand Faces of Multithreading
Introduction
Synchronizing shared resources with TMonitor
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
Talking with the main thread using a thread-safe queue
Getting ready
How to do it...
There's more
Synchronizing multiple threads using TEvent
Getting ready
How to do it...
There's moreā¦
Displaying a measure on a 2D graph like an oscilloscope
Getting ready
How to do it...
There's moreā¦
5. Putting Delphi on the Server
Introduction
Web client JavaScript application with WebBroker on the server
Getting ready
How to do it...
Retrieving the people list
Creating or updating a person
Deleting a person
Running the application
There's moreā¦
Converting a console service application to a Windows service
Getting ready
How to do it...
How it works...
There's more...
Serializing a dataset to JSON and back
Getting ready
How to do it...
There's more...
Serializing objects to JSON and back using RTTI
Getting ready
How to do it...
How it works...
There's more...
Sending a POST HTTP request encoding parameters
Getting ready
How to do it...
How it works...
There's more...
Implementing a RESTful interface using WebBroker
Getting ready
How to do it...
How it works...
There's more...
Controlling remote applications using UDP
UDP
Getting ready
How to do it...
How it works...
There's more...
Using App Tethering to create a companion app
Getting ready
How to do it...
There's more...
Creating DataSnap Apache modules
Getting ready
How to do it...
How it works...
There's more...
6. Riding the Mobile Revolution with FireMonkey
Introduction
Taking a photo, applying effects, and sharing it
Getting ready
How to do it...
How it worksā¦
There's moreā¦
Using listview to show and search local data
Getting ready
How to do it...
How it works...
There's more...
Do not block the main thread!
Getting ready
How to do it...
How it works...
There's more...
Using SQLite databases to handle a to-do list
Getting ready
How to do it...
There...
Table of contents
- Delphi Cookbook
Frequently asked questions
Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, weāve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere ā even offline. Perfect for commutes or when youāre on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Delphi Cookbook by Daniele Teti in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in C++. We have over one million books available in our catalogue for you to explore.