101 _ delphi5 programmer's Guide

Source: Internet
Author: User
Document directory
  • Delphi5 programmer's Guide
Delphi5 programmer's Guide

DelphiTutorial Series of books(101)Delphi5Programmer's Guide Organize netizens (state)Email:Shuaihj@163.com

:

Part1

Part2

Part3

Part4

Part5

Part6

Part7

  • Author: Jiang fangshuai
  • Press: People's post and telecommunications Press
  • ISBN: 9787115086761
  • Mounting time:
  • Published on: February 1, August 2000
  • Page number: 1046
  • Version: Version 1

Introduction

This book introduces all aspects of delphi5. The book consists of five parts: The first part introduces the basic knowledge of Delphi; the second part introduces conventional programming, such as the use of common controls; the third part is advanced programming, for example, writing a dynamic link library (DLL), controlling printers, handling exceptions, thread programming, file system processing, MDI applications, and multimedia programming. The fourth part introduces control programming, the development technology of visual controls (including conventional controls and graphical controls) and non-visual controls is described in detail. The fifth part is database programming, and the Development Technology of database applications in Delphi is introduced, this section demonstrates how to use Delphi to develop large database applications through complex instances. In addition, this book also provides a large number of rich code examples. This book is suitable for the majority of users who use delphi5 for program development, especially for medium and senior programmers.

Directory

Part 1 Delphi Basics

Chapter 2 xuyan

1.1 Historical Review of Delphi

1.2 installation and startup of Delphi 5

1.2.1 Delphi 5 System Requirements

1.2.2 install Delphi 5

1.2.3 start Delphi 5

Chapter 2 Delphi 5 integration interface

2.1 Introduction to integrated development environment

2.2 menu bar

2.2.1 "file" menu

2.2.2 "edit" menu

2.2.3 "Search" menu

2.2.4 "View" menu

2.3 Toolbar

2.4 control palette

2.5 Attribute Editor

2.6 code editor

2.6.1 code editor window

2.6.2 shortcut menu of the Code Editor

2.6.3 browse in code editor

2.6.4 write code in the Code Editor

2.7 Form Designer

2.8 code browser

2.9 set options for the integrated development environment

2.9.1 integrated development environment options

2.9.2 options of the Code Editor

2.9.3 configure the control palette

2.9.4 Save the integrated development environment settings

Chapter 5 Introduction to Delphi 5

3.1 create the first application

3.1.1 create a project

3.1.2 Add controls to form

3.1.3 add an event handler

3.1.4 run the application

3.2 Basic concepts of Object-Oriented Programming

3.2.1 introduction to Object-Oriented Programming

3.2.2 basic object-oriented programming mechanism

3.3 Object-Oriented Programming in Delphi

3.3.1 learn about Delphi objects through the Delphi instance

3.3.2 inherit data and methods from an object

3.3.3 scope of Objects

3.3.4 description of object public and private domains

3.3.5 domain and method of accessing objects

3.3.6 assign values to object variables

3.3.7 create a non-visual object

3.4 how to compile a good program

3.4.1 writing code as simple as possible

3.4.2 compile appropriate test programs

3.4.3 rational use of OOP

3.4.4 brief Method

3.4.5 names of variables, functions, and procedures

3.4.6 create controls

Chapter 4 controls, forms, and projects

4.1 forms and controls

4.1.1 place controls on the form

4.1.2 multiple controls

4.1.3 containers, parent controls, and child Controls

4.2 forms in the Delphi project

4.2.1 Add a new form to the Project

4.2.2 call another form from one form

4.2.3 share forms with other projects

4.2.4 use form template and Wizard

4.3 attributes and events of an object

4.3.1 modifying object attributes during design

4.3.2 modifying object attributes at runtime

4.3.3 object events

4.4 Delphi project management

4.4.1 Project Overview

4.4.2 basic engineering operations

4.4.3 "project" menu

4.5 project setting options

4.5.1 specify the main form

4.5.2 Set application options

Chapter 2 data types and variables in Delphi

5.1 morphology in Delphi

5.1.1 notes

5.1.2 identifier

5.1.3 reserved words, indicators, and special symbols

5.1.4 Operator

5.2 Data Types in Delphi

5.2.1 simple type

5.2.2 string type

5.3 construction type

5.3.1 Array

5.3.2 set

5.3.3 records

5.3.4 File

5.4 pointer type

5.5 process type

5.6 variable type

5.7 Variables

5.7.1 variable Declaration

5.7.2 global and local variables

5.8 type constant

5.8.1 simple type constant

5.8.2 constants of pointer type

5.8.3 process type Constants

5.8.4 constructor Constants

5.9 type compatibility, value assignment compatibility, and forced type conversion

5.9.1 type completely consistent

5.9.2 type compatibility

5.9.3 value assignment compatibility

5.9.4 type forced conversion

Chapter 4 Class and Class reference

6.1 class overview

Declaration of the 6.2 class

6.3 Fields

Methods of the 6.4 class

6.4.1 method description and definition

6.4.2 method indicator

6.4.3 constructor and destructor

6.4.4 Methods

6.5 class attributes

6.5.1 attribute declaration syntax

6.5.2 Attribute Clause

6.5.3 array attributes

6.5.4 index clause

6.5.5 attribute Overloading

Visibility of 6.6 class members

6.6.1 public

6.6.2 published

6.6.3 private

6.6.4 protected

6.6.5 automatic

6.7 class reference

6.7.1 class reference Declaration

6.7.2 usage of class references

6.8 tobject and tclass

Chapter 4 control statements, processes, and functions

7.1 statement

7.1.1 label declaration statement

7.1.2 constant declaration statement

7.1.3 resource string

7.1.4 type declaration statement

7.1.5 variable declaration statement

7.1.6 process statement

7.1.7 function declaration statement

7.1.8 output statement

7.2 value assignment statement

7.3 GOTO statement

7.4 compound statements

7.5 condition statements

7.5.1 if statement

7.5.2 case statement

7.6 loop statements

7.6.1 for statement

7.6.2 while statement

7.6.3 repeat statement

7.6.4 break and continue

7.7 declaration, definition and call of processes and functions

7.7.1 Process Declaration, definition and call

7.7.2 declaration, definition and call of functions

7.7.3 call conventions

7.8 other process and function problems

7.8.1 scope of variables in a process or function

7.8.2 dashboard

7.8.3 parameter type

7.9 nesting and Recursion

Part 2 general programming

Chapter 2 basic controls of Delphi

8.1 controls used to process text

8.1.1 tag Control

8.1.2 text box Control

8.1.3 static text box Control

8.1.4 format the text box Control

8.1.5 remarks Control

8.2 use the command button

8.2.1 button control

8.2.2 Bitmap Button

8.2.3 shortcut buttons

8.3 option buttons and check boxes

8.3.1 Option Button

8.3.2 check box

8.4 use of various list boxes

8.4.1 list box Control

8.4.2 combo Control

8.4.3 check box Control

8.5 Container Control

8.5.1 tgroupbox Control

8.5.2 tradiogroup Control

8.5.3 tpanel Control

8.5.4 tscrollbox Control

Chapter 2 tool controls and graphical controls

9.1 tool controls

9.1.1 scroll bar Control

9.1.2 process bar Control

9.1.3 file system controls

9.2 graphical controls

9.2.1 image control

9.2.2 Shape Control

9.2.3 image list control

9.3 chart controls

9.3.1 use different types of Series

9.3.2 series Functions

9.3.3 tchart control options

9.3.4 modify series data at runtime

Chapter 2 graphic interface for designing applications

10.1 menu

10.1.1 use Menu Designer

10.1.2 use graphics on the menu

10.1.3 merge menu

10.1.4 response menu command

10.1.5 control menu during runtime

10.1.6 shortcut menu

10.2 Toolbar

10.2.1 use the tpanel and tspeedbutton controls to create a toolbar

10.2.2 use the ttoolbar and tcoolbar controls to create a toolbar

10.2.3 use the tcontrolbar control and ttoolbar control to create a floating toolbar

10.3 dock window

10.3.1 dock controls in the form

10.3.2 dock a form in the form

10.4 action list

10.4.1 use action list

10.4.2 use standard actions

10.5 Application Event object

10.5.1 tapplicationevents event

10.5.2 tapplicationevents demo

Chapter 2 drawing in Delphi

11.1 Windows GDI and VCL TCanvas

11.1.1 understand GDI

11.1.2 VCL makes graphical programming easier

11.2 use TCanvas

11.2.1 brush object Overview

11.2.2 pen object Overview

11.2.3 font object Overview

11.2.4 penpos attribute of the TCanvas object

11.2.5 exploring and using TCanvas. copymode

11.2.6 pixels attribute of TCanvas

11.3 TCanvas Method

11.4 example of using a TCanvas object

11.4.1 oncreate event

11.4.2 formshow Method

11.4.3 set the style attribute of the tbrush object

11.4.4 set the mode attribute of the PEN object

11.4.5 use fonts

11.4.6 use plotting Functions

11.4.7 set the copymode attribute

11.4.8 modify cliprect

11.5 custom line type

11.6 colors in Delphi

Color in 11.6.1 Delphi

11.6.2 colors sample project

11.6.3 colors in low color depth

11.7 use the palette in Delphi

11.8 process graphic files in Delphi

11.8.1 bitmap

11.8.2 icon

11.8.3 RMB

11.8.4 analyze tpaintbox and timage

11.9 Image Processing

11.9.1 animated display of Bitmap

11.9.2 bitmap flip

11.9.3 fade-in and fade-out of images

Part 3 Advanced Programming

Chapter 2 dynamic link library (DLL)

12.1 DLL Overview

12.1.1 DLL Overview

12.1.2 DLL advantages

12.2 create and use DLL

12.2.1 create a simple DLL

12.2.2 reference methods in DLL

12.3 display the window in DLL

12.3.1 display mode window

12.3.2 display mode-free window

12.4 DLL Entry and Exit Functions

12.4.1 process/thread initialization and termination routine

12.4.2 DLL entry/exit example

12.5 callback function

12.5.1 use of callback Functions

12.5.2 call the callback function from the DLL

12.6 share DLL data between different processes

12.6.1 use the memory ing file to share DLL data

12.6.2 use stream files to share data

12.7 extract the objects in the DLL

Chapter 2 Printing in Delphi

13.1 printed objects in Delphi

13.1.1 tprinter object

13.1.2 canvas object of tprinter

13.2 Implementation of simple printing

13.2.1 print content in the tmemo component

13.2.2 print bitmap

13.2.3 print text in RTF Format

13.2.4 print form

13.3 implementation of advanced printing

13.3.1 print the column report

13.3.2 interrupted Printing

13.3.3 envelope Printing

13.3.4 Implementation of print preview

13.4 other print tasks

13.4.1 tdevicemode Structure

13.4.2 set Print Options

13.4.3 specify the default printer

13.5 get printer information

Chapter 4 Exception Handling

14.1 basic knowledge about Exception Handling

14.1.1 Exception Handling Overview

14.1.2 Exception Handling syntax

14.1.3 default Exception Handling handle

14.1.4 define your own exceptions

14.1.5 exception class

14.1.6 trigger an exception again in the exception handling handle

14.2 Exception Handling instance

14.2.1 types of exceptions captured

14.2.2 difference between finally and except T

Chapter 3 threads

15.1 thread Overview

15.1.1 new types of multitasking and threads

15.1.2 tthread object Basics

15.2 use instance of thread object

15.2.1 create a tthread derived class

15.2.2 thread termination

15.2.3 synchronization with VCL

15.2.4 example of thread usage

15.2.5 priority and timing

15.2.6 thread suspension and Wakeup

15.2.7 time for testing a thread

15.3 multi-threaded applications

15.3.1 local thread storage

15.3.2 Thread Synchronization

15.3.3 multi-threaded program example

15.4 multithreading and database

15.5 multithreading and Graphic Processing

Chapter 4 File Processing

16.1 file read/write (I/O)

16.1.1 read/write of text files

16.1.2 read/write of Type files

16.1.3 process non-typed files

16.2 ttextrec and tfilerec Structures

16.3 memory ing File

16.3.1 usage of memory ing files

16.3.2 use a ing File

16.4 directory and drive

16.4.1 read drive information

16.4.2 obtain directory information

File Operations in the 16.4.3 directory

16.4.4 directory operations

16.4.5 get the file version information

Chapter 2 MDI applications

17.1 create an MDI Application

17.1.1 MDI Overview

17.1.2 subwindow

17.1.3 Main Window

17.2 menus in the MDI Application

17.2.1 merge menu

17.2.2 list open documents in the menu

17.3 other problems with creating an MDI Application

17.3.1 output a bitmap in the MDI customer Zone

17.3.2 hide a subwindow

17.3.3 minimize, maximize, and restore the MDI subwindow

17.4 clipboard Basics

17.4.1 use the clipboard to process text

17.4.2 Image Processing Using clipboard

17.5 customize the clipboard format

17.5.1 create a clipboard-aware object

17.5.2 use the custom clipboard format

Chapter 2 multimedia programming

18.1 simple Multimedia Applications

18.1.1 Media Player

18.1.2 play wav files

18.1.3 play a video

Devices supported by 18.1.4

18.2 create a CD player

18.2.1 create a pop-up Screen

18.2.2 initialize and end the CD player

18.2.3 update the information of the CD player

18.3 understand DirectDraw

18.3.1 what is DirectDraw

18.3.2 Double Buffering

18.3.3 hardware and Simulation

18.4 a simple DirectDraw program example

18.5 DirectDraw technology

18.5.1 enter the exclusive mode and change the screen resolution

18.5.2 what is the DirectDraw surface?

18.5.3 write text to the screen

18.5.4 exchange Surface

18.5.5 release memory

18.6 smooth animation

18.7 use bitmap

Part 4 control programming

Chapter 4 basic knowledge of creating controls

19.1 Control Principle

19.1.1 determine a parent class

19.1.2 create a unit file

19.1.3 add control attributes

19.1.4 add Control Method

Events in which a widget is added

19.2 create a derived Control

19.2.1 create simple controls

19.2.2 register a widget

19.2.3 change the default behavior of the control

19.2.4 test controls

19.3 create a package

Packages in Delphi

19.3.2 create a package

19.4 expand the customcontrol package

19.4.1 new control derived from custom control

19.4.2 create a widget

19.4.3 publish control attributes

Chapter 2 advanced knowledge of creating controls

20.1 create your own control from the abstract Control

Overview 1.1 abstract class

V1.1.2 create a graphical Control

4.1.1.3 Add an icon to the control

4.1.1.4 test the control

20.2 Attribute Editor and control Editor

4.1.2.1 create a clock control

20.2.2 five types of API Tool functions in Delphi

20.2.3 property Editor

4.1.2.4 register the custom property Editor

20.2.5 control Editor

Chapter 4 unvisualized controls

21.1 non-visual controls

21.2 create an invisible Control

21.2.1 create a base class

21.2.2 create the tjfsfilesearch Control

21.3 test1 Program

21.4 Test2 Program

21.4.1 file comparison

21.4.2 Result Display

21.4.3 folder exchange

21.5 create a dialog box Control

21.6 control Template

21.7 ActiveX Control

Part 5 Database Programming

Chapter 2 database application development overview

22.1 database application Overview

22.1.1 database Overview

22.1.2 architecture of database applications

22.1.3 Design User Interface

22.2 single-layer database applications

22.2.1 BDE-based applications

22.2.2 transactions

22.2.3 file-based Single-layer database applications

22.3 multi-tier database applications

22.3.1 multi-layer architecture Overview

22.3.2 select connection mode

22.3.3 create an Application Server

22.3.4 create a customer Program

22.3.5 error correction and data update

22.3.6 Custom Application Server

22.3.7 transactions

22.3.8 activeform

22.4 BDE Session Period

22.4.1 tsession

22.4.2 retrieve BDE session information

22.4.3 manage BDE aliases

22.4.4 traverse all tdatabase controls

22.4.5 access the paradox table

22.4.6 Password

22.5 database connection

22.5.1 tdatabase Control

22.5.2 control connection

22.5.3 traverse all datasets in a database

Chapter 3 Overview of Data Controls and objects

23.1 dataset Control

23.1.1 browsing history

23.1.2 bookmarks

23.1.3 search for specific records

23.1.4 Filter

23.1.5 modify data

23.1.6 events

23.1.7 tbdedataset

23.1.8 tdbdataset

23.2 Field object

23.2.1 specific field object

23.2.2 set attributes of a permanent field object

23.2.3 Attribute Set

23.2.4 display, conversion, and Access Field Values

23.2.5 field-level error correction

23.2.6 Oracle 8 object field

23.3 access the table

23.3.1 general steps for using the tTable Control

23.3.2 search for records in a table

23.3.3 sort records

23.3.4 select some records

23.3.5 operations on the entire table

23.3.6 master/detail relationship

23.3.7 nested tables

23.3.8 import data from another table

23.3.9 use tbatchmove

23.4 query a database

23.4.1 use query effectively

23.4.2 use the tquery Control

23.4.3 specify the SQL statement to be executed

23.4.4 Parameters

23.4.5 execute the query

23.4.6 heterogeneous Query

23.4.7 query results

23.5 stored procedures

23.5.1 Stored Procedure Overview

23.5.2 use stored procedures

23.5.3 create a stored procedure

23.5.4 stored procedure parameters

Chapter 4 Database Application Instances

24.1 database applications with associated addresses

Relationship between database tables in the program 24.1.1

24.1.2 implementation of the kdadd program function

24.1.3 code of the kdadd Program

24.1.4 tabs of the kdadd Program

24.2 kdaddexplore Program

24.2.1 Program Interface

24.2.2 Implementation of program functions

24.2.3 kdaddexplore program code

24.3 Interbase programming Basics

24.3.1 Interbase and Delphi

24.3.2 test InterBase

24.3.3 create a database

24.3.4 use wisql to manage databases

24.3.5 Transaction Processing

24.3.6 cache update

24.3.7 security and InterBase Server Manager

24.4 create a music program

24.4.1 music program overview

24.4.2 design music program

24.4.3 create an index on the music table

24.4.4 generator, trigger, and stored procedure

24.4.5 server-side rules and client-side rules

24.5 music program interface

24.5.1 Main Interface

24.5.2 subform

24.6 music program code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.