74112
74112
com
https://textbookfull.com/product/delphi-cookbook-teti/
OR CLICK HERE
DOWLOAD EBOOK
https://textbookfull.com/product/day-of-the-delphi-1st-edition-jon-
land/
textbookfull.com
https://textbookfull.com/product/mastering-delphi-programming-a-
complete-reference-guide-primoz-gabrijelcic/
textbookfull.com
https://textbookfull.com/product/delphi-collected-works-of-arthur-
schopenhauer-illustrated-arthur-schopenhauer/
textbookfull.com
https://textbookfull.com/product/introducing-delphi-orm-object-
relational-mapping-using-tms-aurelius-john-kouraklis/
textbookfull.com
Parenting and Family Processes in Child Maltreatment and
Intervention 1st Edition Douglas M. Teti (Eds.)
https://textbookfull.com/product/parenting-and-family-processes-in-
child-maltreatment-and-intervention-1st-edition-douglas-m-teti-eds/
textbookfull.com
https://textbookfull.com/product/introducing-delphi-orm-object-
relational-mapping-using-tms-aurelius-1st-edition-john-kouraklis/
textbookfull.com
https://textbookfull.com/product/expert-delphi-robust-and-fast-cross-
platform-application-development-2nd-edition-marco-cantu/
textbookfull.com
https://textbookfull.com/product/delphi-complete-works-of-quintus-
curtius-rufus-history-of-alexander-illustrated-quintus-curtius-rufus/
textbookfull.com
Delphi Cookbook Second Edition
Table of Contents
Delphi Cookbook Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
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 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 owner draw combos and listboxes
Getting ready
How to do it…
How it works…
There's more…
Making an owner draw control aware of the VCL styles
Getting ready
How it works…
There's more…
Creating a stack of embedded forms
Getting ready
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 21st century – knowing the streams
Getting ready
How it works…
There's more…
Creating a Windows service
Getting ready
How it works…
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…
Be coherent with the Windows look and feel using TTaskDialog
Getting started
How it works…
There's more…
2. Becoming 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 ready
How to do it…
There's more…
Creating helpers for your classes
Getting ready
How to do it…
There's more…
3. Knowing Your Friends – the Delphi RTL
Introduction
Check strings with regular expressions
Getting ready
How to do it…
There's more…
Consuming RESTful services using native HTTP(S) client libraries
Getting ready
Some HTTP considerations
How it works…
There's more…
THTTPClient's methods which directly map the HTTP verbs
How to verify that HTTP TRACE is disabled
Cope with the encoded Internet world using System.NetEncodings
Getting ready
How it works…
There's more…
Save space using System.Zip
How it works…
There's more…
Decouple your code using a cross-platform publish/subscribe
mechanism
Getting ready…
How it works…
There's more…
4. 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…
See also
Creating a styled TListBox
Getting ready
How to do it…
How it works…
See also
Impressing your clients with animations
How to do it…
How it works…
See also
Using master/details with LiveBindings
Getting ready
How to do it…
How it works…
There's more…
See also
Showing complex vector shapes using paths
Getting ready
How to do it…
How it works…
There's more…
Using FireMonkey in a VCL application
How to do it…
How it works…
There's more…
Reinventing your GUI also known as mastering Firemonkey
controls, shapes, and effects
Getting ready
How it works…
There's more…
5. 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…
Using tasks to make your customer happier
Getting ready
How it works…
There's more…
Monitoring things using futures
Getting ready
How it works…
There's more…
Parallelize using the parallel for
Getting ready
How it works…
There's more…
6. Putting Delphi on the Server
Introduction
Developing web client JavaScript applications with WebBroker on
the server
Getting ready
How it works…
Retrieving the people list
Creating or updating a person
Running the application
There's more…
Converting a console 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 it works…
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 application using UDP
Getting ready
How to do it…
How it works…
There's more…
Using app tethering to create a companion app
Getting ready
How it works…
There's more…
Creating DataSnap Apache modules
Getting ready
How to do it…
How it works…
There's more…
Creating WebBroker Apache modules
Getting ready
How to do it…
How it works…
There's more…
Using native HTTP(S) client libraries
Getting ready
How it works…
There's more…
7. 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 TListView to show and search local data
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's more…
Do not block the main thread!
Getting ready
How to do it…
How it works…
There's more…
Using a styled TListView to handle long lists of data
Getting ready
How to do it…
How it works…
There's more…
Customizing the TListView
Getting ready
How it works…
There's more…
Taking a photo and location and sending it to a server
continuously
Getting ready
How to do it…
The client side
The server-side
There's more…
Talking with the backend
Getting ready
How to do it…
There's more…
Making a phone call from your app!
Getting ready
How to do it…
How it works…
There's more…
Tracking the application's lifecycle
Getting ready
How to do it…
There's more…
8. Using Specific Platform Features
Introduction
Using Android SDK Java classes
Getting ready
How to do it…
There's more…
Using iOS Objective C SDK classes
Getting ready
How it works…
There's more…
Displaying PDF files in your app
Getting ready
How it works…
Showing the PDF file on Android
Showing the PDF file on iOS
There's more…
Download the PDF file from the server
Sending Android Intents
Getting ready
How it works…
More complex intent – sending a full flagged e-mail
Starting an activity for result – the speech to text engine
There's more…
Letting your phone talk – using the Android TextToSpeech engine
Getting ready
How it works…
There's more…
Using Java classes in Android apps with Java2OP
Getting ready
How to do it…
There's more…
Doing it in the background, the right way – Android services
Getting ready
How it works…
There's more…
Index
Delphi Cookbook Second Edition
Delphi Cookbook Second Edition
Copyright © 2016 Packt Publishing
Every effort has been made in the preparation of this book to ensure
the accuracy of the information presented. However, the information
contained in this book is sold without warranty, either express or
implied. Neither the author, nor Packt Publishing, and its dealers and
distributors will be held liable for any damages caused or alleged to
be caused directly or indirectly by this book.
Livery Place
35 Livery Street
ISBN 978-1-78528-742-8
www.packtpub.com
Credits
Author
Daniele Teti
Reviewer
Roman Yankovsky
Commissioning Editor
Priya Singh
Acquisition Editor
Rahul Nair
Deepti Thore
Technical Editor
Mohita Vyas
Copy Editor
Merilyn Periera
Project Coordinator
Shweta H. Birwatkar
Proofreader
Safis Editing
Indexer
Graphics
Disha Haria
Production Coordinator
Arvindkumar Gupta
Cover Work
Arvindkumar Gupta
About the Author
Daniele Teti is a software architect, trainer, and consultant with
over 20 years of professional experience. He writes code in a
number of languages but his preferred language for compiled native
software, is Object Pascal.
Daniele lives in Rome, Italy, with his beloved wife Debora and their
little boy Mattia.
https://www2.packtpub.com/books/subscription/packtlib
This book is an advanced level guide that will help Delphi developers
get a higher expertise in their everyday job. The everyday job, and
the quality of your deliverables, is what contributes to the quality of
your professional life. If it does not make sense, reinvent the wheel
repeatedly, especially when working with a well-established tool,
such as Delphi. The focus of the book is to provide readers with
comprehensive and detailed examples on how effectively the Delphi
software can be designed and written. All the recipes in the book are
the result of years of development, training, and consultancy
activities in many different fields of the IT industries, from the small
systems with thousands of installations to the large systems
commissioned by big companies or by the government. It is not a
magic book that will solve all your development problems (if you find
it, tell me, please!), but can be helpful to get a different point of
view on a specific problem, or a hint on how to solve problems.
Every time I start to read a new book, I ask myself, "Will the author
have something interesting to say?", "How much will this book
change my point of view about the topics mentioned?", "Is it worth
the time spent to read it?" Now, in spite of being from the other side
of the river, I worked hard to put as much good quality contents in
my books as possible, I hope that will match your expectations.
If you want to run the mobile app on a phone or a tablet, you could
use the Android emulator or the iOS simulator, but we strongly
suggest an actual device to see how the app really behaves. To
deploy an iOS app on your device, you also need an Apple computer
with MacOSX.
Who this book is for
This book aims to help the professional Delphi developers in their
day-to-day job. This book will teach you about the newest Delphi
technologies and its hidden gems. It is not a book for a newbie, but
the practical approach will help you reach a new level with your
Delphi skills. The experienced developer can benefit from this book
because nontrivial problems are solved using best practices. Where
more than one way is available or the topic is too broad to be
explained in the available pages, references are provided to allow
you to go deeper in that field. It is a book to have on your desk for
the next few years.
Another Random Document on
Scribd Without Any Related Topics
“Lightness of touch this volume does not possess in an eminent
degree, but it contains a large amount of information which has
been digested with affectionate and conscientious care.”
“The scope of the work is not too great for the space allotted; the
treatment is scientific, thoroughly modern and up-to-date,
reflecting current university standards. The selection of material
and the completeness and comprehensiveness of the treatment are
commendable.”
“Extraordinary indiscretion.”
“The author’s treatment of the theme makes the yarn rather less
absurd than might have been expected.”
Dix, Morgan, ed. History of Trinity church in the city of New York;
compiled in large part from original documents, by order of the
corporation. 4v. **$5. Putnam.
The last volume of the four devoted to the history of Trinity
church brings the account of the earliest Episcopal church in the
city of New York down to the accession of the author who is the
present rector.
“An interest ... far wider than the limits of the parish, albeit the
largest and most influential parish in the land.”
Further
“My art, you see, is just to take a hint
Expand and make it permanent in print.”
Downey, Edmund. Charles Lever: his life and his letters. 2v. *$5.
Scribner.
The author of “Harry Lorrequer,” and “Charles O’Malley”
contributes somewhat to his own biography, thru letters and
autobiographical prefaces to early stories which primarily show
him to be a “typical good fellow,” with an amount of spring in his
temperament and the power of enjoying life. The social and literary
man, with a warm interest in politics, was a “good husband and
father; he was honest (though his sincerity was sometimes under
suspicion from the rapidity of his conclusions); he was kind; but he
always got through more than he earned, and the result is a record
of perpetual struggle to meet the claims upon him.... His
extravagance led to a growing discontent, which reached
unreasonable proportions. He was incapable alike of correcting his
proof-sheets and his indulgences and grew embittered, unable to
keep friends with himself, as the ‘good fellow’ is expected to do.”
(Ath.)
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com