Delphi Kurs - Szybki start EN.pdf
(
1077 KB
)
Pobierz
Quick Start
Quick Start
Borland
®
Delphi
™
6
for Windows
Borland Software Corporation
100 Enterprise Way, Scotts Valley, CA 95066-3249
Refer to the DEPLOY document located in the root directory of your Delphi 6 product for a complete list of files that
you can distribute in accordance with the Delphi License Statement and Limited Warranty.
Borland may have patents and/or pending patent applications covering subject matter in this document. The
furnishing of this document does not give you any license to these patents.
C
OPYRIGHT
© 1983, 2001 Borland Software Corporation. All rights reserved. All Borland brands and product names
are trademarks or registered trademarks of Borland Software Corporation. Other product names are trademarks or
registered trademarks of their respective holders.
Printed in the U.S.A.
HDE1360WW21000 1E0R0501
0102030405-9 8 7654321
PDF
Contents
Chapter 1
Introduction 1-1
What is Delphi? . . . . . . . . . . . . . . . . . . 1-1
Finding information . . . . . . . . . . . . . . . . 1-1
Online Help . . . . . . . . . . . . . . . . . . . 1-2
F1
Help . . . . . . . . . . . . . . . . . . . . . 1-2
Printed documentation . . . . . . . . . . . . . . 1-3
Developer support services and Web
site . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
Typographic conventions . . . . . . . . . . . . . 1-4
Web server applications . . . . . . . . . . . . 3-9
Database applications. . . . . . . . . . . . . 3-10
BDE Administrator . . . . . . . . . . . . 3-10
SQL Explorer (Database Explorer) . . . . 3-11
Database Desktop . . . . . . . . . . . . . 3-11
Data Dictionary . . . . . . . . . . . . . . 3-11
Custom components . . . . . . . . . . . . . 3-11
DLLs . . . . . . . . . . . . . . . . . . . . . . 3-12
COM and ActiveX . . . . . . . . . . . . . . . 3-12
Type libraries . . . . . . . . . . . . . . . . 3-12
Chapter 2
A tour of the desktop 2-1
Starting Delphi . . . . . . . . . . . . . . . . . . . 2-1
The IDE . . . . . . . . . . . . . . . . . . . . . . . 2-1
The menus and toolbars. . . . . . . . . . . . . . 2-2
The Component Palette, Form Designer,
and Object Inspector . . . . . . . . . . . . . . . 2-3
The Object TreeView . . . . . . . . . . . . . . . . 2-4
The Object Repository . . . . . . . . . . . . . . . 2-5
The Code Editor . . . . . . . . . . . . . . . . . . 2-6
Code Insight . . . . . . . . . . . . . . . . . 2-7
Class Completion . . . . . . . . . . . . . . 2-8
Code Browsing . . . . . . . . . . . . . . . 2-8
The Diagram page . . . . . . . . . . . . . . . 2-9
Viewing form code . . . . . . . . . . . . . . . 2-10
The Code Explorer . . . . . . . . . . . . . . . . . 2-11
The Project Manager . . . . . . . . . . . . . . . . 2-12
The Project Browser . . . . . . . . . . . . . . . . 2-13
To-do lists . . . . . . . . . . . . . . . . . . . . . . 2-13
Chapter 4
Creating a text editor—a tutorial 4-1
Starting a new application . . . . . . . . . . . . . 4-1
Setting property values. . . . . . . . . . . . . . . 4-2
Adding components to the form . . . . . . . . . 4-3
Adding support for a menu and a toolbar . . . . 4-6
Adding actions to the action manager . . . . 4-7
Adding standard actions to the
action manager. . . . . . . . . . . . . . . . . 4-9
Adding images to the image list . . . . . . . 4-10
Adding a menu . . . . . . . . . . . . . . . . . . 4-13
Adding a toolbar . . . . . . . . . . . . . . . . . 4-14
Clearing the text area (optional) . . . . . . . 4-15
Writing event handlers . . . . . . . . . . . . . . 4-16
Creating an event handler for the
New command. . . . . . . . . . . . . . . . 4-16
Creating an event handler for the
Open command . . . . . . . . . . . . . . . 4-18
Creating an event handler for the
Save command . . . . . . . . . . . . . . . . 4-19
Creating an event handler for the
Save As command . . . . . . . . . . . . . . 4-20
Creating a Help file . . . . . . . . . . . . . . . . 4-22
Creating an event handler for the
Help Contents command . . . . . . . . . . 4-22
Creating an event handler for the
Help Index command . . . . . . . . . . . . 4-23
Creating an About box . . . . . . . . . . . . . . 4-24
Completing your application . . . . . . . . . . 4-26
Chapter 3
Programming with Delphi 3-1
Creating a project . . . . . . . . . . . . . . . . . 3-1
Adding data modules . . . . . . . . . . . . . 3-2
Building the user interface . . . . . . . . . . . . 3-2
Placing components on a form . . . . . . . . 3-2
Setting component properties. . . . . . . . . 3-3
Writing code . . . . . . . . . . . . . . . . . . . . 3-5
Writing event handlers. . . . . . . . . . . . . 3-5
Using the VCL and CLX libraries. . . . . . . 3-5
Compiling and debugging projects . . . . . . . 3-6
Deploying applications . . . . . . . . . . . . . . 3-8
Internationalizing applications . . . . . . . . . . 3-8
Types of projects . . . . . . . . . . . . . . . . . . 3-8
CLX applications . . . . . . . . . . . . . . . . 3-9
Chapter 5
Customizing the desktop 5-1
Organizing your work area . . . . . . . . . . . . 5-1
Arranging menus and toolbars . . . . . . . . 5-1
Docking tool windows . . . . . . . . . . . . . 5-2
Saving desktop layouts . . . . . . . . . . . . . 5-4
iii
Customizing the Component palette . . . . . . 5-5
Arranging the Component palette . . . . . . 5-5
Creating component templates . . . . . . . . 5-6
Installing component packages . . . . . . . . 5-7
Using frames . . . . . . . . . . . . . . . . 5-8
Adding ActiveX controls. . . . . . . . . . 5-9
Setting project options . . . . . . . . . . . . . . . 5-9
Setting default project options . . . . . . . . 5-9
Specifying project and form templates
as the default. . . . . . . . . . . . . . . . . . . . 5-9
Adding templates to the Object
Repository . . . . . . . . . . . . . . . . . . 5-10
Setting tool preferences. . . . . . . . . . . . . . 5-11
Customizing the Form Designer. . . . . . . 5-11
Customizing the Code Editor . . . . . . . . 5-12
Customizing the Code Explorer . . . . . . . 5-12
Index
I-1
iv
1
Chapter1
Introduction
This
Quick Start
provides an overview of the Delphi development environment to get
you started using the product right away. It also tells you where to look for details
about the tools and features available in Delphi.
Chapter 2, “A tour of the desktop” describes the main tools on the Delphi desktop, or
integrated desktop environment (IDE). Chapter 3, “Programming with Delphi”
explains how you use some of these tools to create an application. Chapter 4,
“Creating a text editor—a tutorial” takes you step by step through a tutorial to write
a program for a text editor. Chapter 5, “Customizing the desktop” describes how you
can customize the Delphi IDE for your development needs.
What is Delphi?
Delphi is an object-oriented, visual programming environment for rapid application
development (RAD). Using Delphi, you can create highly efficient applications for
Microsoft Windows 2000, Windows 98, and Windows NT with a minimum of
manual coding. Delphi also provides a simple cross-platform solution when used in
conjunction with Kylix, Borland’s RAD tool for Linux. Delphi provides all the tools
you need to develop, test, and deploy applications, including a large library of
reusable components, a suite of design tools, application and form templates, and
programming wizards.
Finding information
You can find information on Delphi in the following ways, described in this chapter:
•Onine Help
• Printed documentation
• Borland developer support services and Web site
Introduction
1-1
Chapter
Plik z chomika:
smoke30
Inne pliki z tego folderu:
PHP - Podstawy.pdf
(1056 KB)
PHP dla zielonych - ebook.pdf
(802 KB)
Delphi Kurs - Szybki start EN.pdf
(1077 KB)
Zarabianie na grach.docx
(11 KB)
CSS w 12 Krokach.docx
(109 KB)
Inne foldery tego chomika:
Ebook
Komiks
Kursy
Zgłoś jeśli
naruszono regulamin