万本电子书0元读

万本电子书0元读

顶部广告

Delphi Cookbook - Second Edition电子书

售       价:¥

10人正在读 | 0人评论 6.2

作       者:Daniele Teti

出  版  社:Packt Publishing

出版时间:2016-06-01

字       数:308.2万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Over 60 hands-on recipes to help you master the power of Delphi for cross-platform and mobile development on multiple platforms About This Book Get to grips with Delphi to build and deploy various cross-platform applications Design, develop, and deploy real-world applications by implementing a single source codebase This swift guide will increase your productivity to develop applications with Delphi Who This Book Is For If you are an intermediate developer with a basic knowledge of Delphi and you want to develop cross-platform applications, then this book is for you. Familiarity with the fundamentals of RAD (Rapid Application Development) Studio is expected. What You Will Learn Develop visually stunning applications using FireMonkey Deploy LiveBinding effectively with the right OOP approach Create server-side programs to serve RESTful web services and provide data to your mobile apps Use well-defined GUI design patterns to build mobile applications that provide a great user experience Build mobile apps that read data from a remote server efficiently Call the platform native API on Android and iOS even for an unpublished API Manage software customization for your customer by making better use of an extended RTTI Implement the most popular design pattern without wasting too much time on debugging and bug fixing In Detail Delphi is a cross-platform Integrated Development Environment (IDE) that supports rapid application development for Microsoft Windows, Apple Mac OS X, Google Android, and Apple iOS. It helps you to concentrate on the real business and save yourself the pain of wandering amid GUI widget details, or having to tackle inter-platform incompatibilities. It also has a wide range of drag-and-drop controls, helping you code your business logic into your business model, and it compiles natively for desktop and mobile platforms. This book will teach you how to design and develop applications, deploy them on the cloud platform, and distribute them within an organization via Google Play and other similar platforms. You will begin with the basics of Delphi and get acquainted with JSON format strings, XSLT transformations, unicode encodings and various types of streams. We then move on to more advanced topics such as developing higher-order functions and using enumerators and RTTI. You will get an understanding of how Delphi RTL functions and how to use FireMonkey in a VCL application. We will then cover topics such as multithreading, using the parallel programming library and putting Delphi on a server. We will also take a look at the new feature of WebBroker Apache modules and then ride the mobile revolution with FireMonkey. By the end of the book, you will be able to develop and deploy cross-platform applications using Delphi. Style and approach Delphi Cookbook is an easy-to-follow guide, rich with hands-on examples of real-world programming tasks in Delphi.
目录展开

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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部