Expert breakthrough in Delphi
DelphiTutorial Series of books(014)《DelphiMaster breakthrough Organize netizens (state)Email:Shuaihj@163.com
:
PDF
Appendix source code
- Author: Shen Yu
- Series name: Others
- Press: Tsinghua University Press
- ISBN: 7900643575
- Mounting time: 2002-11-2
- Published on: February 1, October 2002
- Start: 16
- Page number: 301
- Version: 1-1
Introduction
This book discusses the topic "how to use object-oriented programming methods in Delphi to build well-designed programs" in the form of a combination of theory and practice. CHAPTER l, 2, and 3 of this book introduce the basic knowledge of object-oriented programming and its language implementation in Object Pascal in a different way from General books. Chapter 4th and Chapter 5 introduce the knowledge of the VCL library, Chapter 4th analyzes the source code of some core VCL components, and Chapter 5th describes how to customize and design components. Chapter 3 and Chapter 7 introduce the program architecture design. Chapter 4 describes general code design principles, which can be completely separated from Delphi because these principles are cross-language: chapter 2 is a complete code design example. Taking writing a multi-workspace text editor as an example, we will describe how to design the program architecture from a practical perspective.
This book is intended for Delphi programmers, especially those who have certain implementation capabilities and want to find a "breakthrough" Delphi programmers, as a reference book for their improvement, it can also be used as a reference book for college students and programmers.
Directory
1st Delphi and OOP
Chapter 4 re-recognize Delphi
1.1 Development Tool "people-oriented" Theory
1.2 more advantages of Delphi
1.3 book subject
Conclusion 1.4
Chapter 2 Basic of Object-Oriented Programming
2.1 Nature of classes and objects
2.1.1 language "class" and "object"
2.1.2 semantic "class" and "object"
2.2 Encapsulation
2.2.1 Class-level Encapsulation
2.2.2 unit-level Encapsulation
2.3 Nature of Inheritance
2.3.1 "inheritance" of Language"
2.3.2 semantic "inheritance"
2.4 The nature of Polymorphism
2.4.1 concept of polymorphism and interface reuse
2.4.2 Implementation of polymorphism and VMT/0mT
Conclusion 2.5
Chapter 4 exception and error handling
3.1 essence of exceptions
3.2 Create your own exception classes
3.3 try... finally
3.4 constructor and exception
Conclusion 3.5
2nd VCL and components
Chapter 2 VCL Library
4.1 overview of VCL
4.2 tobject and message delivery
4.3 tcontro1 and Windows message Encapsulation
4.4 tapplication and master message loop
. 1. Remove the windows program from VCL
4.4.2 essence of application objects
4.4.3 tapplication
4.4. 4 window functions (wndproc) process messages
4.5 tpersistent and object assignment
4.6 tcomonent and Object Persistence
4.7 TCanvas and windowsgdi
4.7.1 tpen
4.7.2 tbrush
4.7.3 TCanvas
4.8 tgraphiccontrol/tcustomcontro1 and canvas)
4.9 tcustompanel and window repainting
4.10 tcustomform and modal window
Conclusion 4.11
Chapter 4 VCL Library Extension
5.1 component Basics
5.1.1 attributes
5.1.2 Method
5.1.3 events
5.1.4 package
5.1.5 component Installation
5.2 extend existing components
5.2.1 instance 1: ustbox supporting file Drag and Drop Operations
5.2.2 Example 2: panel with images displayed
5.3 custom components
5.3.1 tactivebutton
5.3.2 tactivecheckbox
5.3.3 tactiveradiobutton
5.4 components and Demo code on the CD
Conclusion 5.5
3rd OOP and code design
Chapter 4 Code Design Basics
6.1 create well-designed code
6.2 use OOP for code design
Conclusion 6.3
Chapter 2 code design example -- sunny smartnote
7.1 requirement overview and code style description
7.1.1 requirement Overview
7.1.2 code style description
7.1.3 illustration
7.2 issneditor/tssneditor/tssnworkspace
7.2.1 issneditor
2.2 tssneditor
7.2.3 tssnmemoeditor
7.2.4 tssnricheditor
7.2.5 tssnworkspace
7.3 tssnworkspacemgr/tssnworkspace
7.3.1 tssnworkspacemgr
7.3.2 tssntabworkspace
7.3.3 tssntabworkspacemgr
7.4 constructor tssneditorctor/tssnworkspacemgrctor
4.1 tssneditorctor/tssnmeoeditorctor/tssnricheditorctor
7.4.2 tssnworkspacemgdtor/tssntabworkspacemgrctor
7.5 event Delegate tssneditorevent/tssnworkspaceevent
7.5.1 tssneditorevent
7.5.2 tssnworkspaceevent
7.6 Other modules
7.6.1 default settings Management
7.6.2 User Interaction
7.6.3 interface module
7.6.4 other units
7.7 Code Description on the CD
Conclusion 7.8
Appendix
A: objectpascal pointer
B rad and non-Rad