售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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's more...
Using a styled TListView to handle a long list of data
Getting ready
How to do it...
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 to 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 life cycle
Getting ready
How to do it...
There's more...
7. 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 to do it...
There's more...
Displaying PDF files in your app
Getting ready
How to do it...
Showing the PDF file on Android
Showing the PDF file on iOS
There's more...
Using Google Docs Viewer
Downloading the PDF file from the server
Sending Android intents
Getting ready
How to do it...
More complex intents – sending a full flagged e-mail
Starting an activity for results – the SpeechToText engine
There's more...
Letting your phone talk – using the Android TextToSpeech engine
Getting ready
How to do it...
There's more...
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜