DL1 - Delphi Core Concepts
| Categories |
Delphi Training, Programming Training, Database Training |
| Duration |
4 days (28 hours) |
| Pre-requisites |
Some programming experience in any language.Windows programming experience is not required, although a familiarity with using Windows is assumed. Prior database experience is helpful. |
|
|
|
| Courseware |
DL1-BS-01 (319 pages) |
| Price |
$1580 |
| Notes |
This course is suitable for Delphi programmers with up to one year of experience, although no prior Delphi experience is required.
|
This Delphi training class will demonstrate how to use Delphi to quickly and easily create Windows applications of any type. The course materials and presentations are designed to provide you with a comprehensive overview of application development in Delphi, focusing on the underlying concepts and fundamental principles rather than on learning by inference. Exercises are provided to reinforce the concepts and principles as they are presented. By the end of this course you will have a solid foundation on which to base your Windows application development in Delphi. You will have already progressed beyond simple application development and will have a thorough understanding of how Delphi works, as well as how to utilize Delphi for maximum effectiveness. You will also have a basic understanding of programming within the Windows environment.
"Take this course, you will not learn more from anywhere else in the same amount of time. Ted definitely has done this many times and presented himself along with the material in a professional manner.." -- Kerry K. from San Diego, CA
"The speaker (Ted Blue) was excellent, enough so that I signed up for another class.." -- Barrie A. from San Diego, CA
"The presentation was quite instructive, content-rich and organized in a fairly logical fashion. Also, most of the more critical concepts were well articulated. This course is a must do for those who aspire to be very proficient Delphi programmers.." -- Donovan A. P. from San Diego, CA
"Excellent, I would highly recommend this course to others.." -- Jeffrey William F. from Ann Arbor, MI
"Excellent. It was better the second time around. I didn't have Windows knowledge the first time I took this class. Being able to take it a second time is a plus for your courses.." -- Sharon N. from San Diego, CA
Chapter 1 - Overview of Delphi
What Is Delphi?
Rapid Application Development
Optimizing Native Code Compiler
Types of Applications
Integrated Database Support
Reporting
The Integrated Development Environment (IDE)
Brief-style Editing
The Integrated Debugger
Documentation and Help
The Visual Component Library (VCL)
Summary
Chapter 2 - Delphi Files and Projects
Delphi Files
Units
The Project Unit
Form Units
Standalone Unit Files
Saving and Naming Files
Distributing Delphi Projects
The Structure of Units
The Project Unit
The Form Unit
Other Units
Creating and Building Delphi Applications
Creating a Delphi Application
Using the Project Manager
Project Groups
Project Group Files
Building a Delphi Application
Conditional Compilation
Saving Files
Order of File Saves
Locations of Saved Files
Files Created During Compilation
Working with Files and Projects
Summary
Chapter 3 - Object Pascal
Overview of Object Pascal
Low Level Access
Mid-level Syntax
Strongly Typed
Native Code, Single-pass Compiler
Object Oriented
Comments
Variables, Data Types and Constants
Integer
Real
Boolean
Char
String
ShortStrings and AnsiStrings
PChar
Working with Strings
Typecasting and Type Compatibility
Complex Data Types
Arrays
Records
Pointers
Enumerated Types
Sets
Sub-ranges
Using Sets and Sub-ranges
Constants
Typed Constants
User Defined Types
Conditional and Loop Structures
If...Then
For...Do
Begin..End
Case...Of
While...Do
Repeat...Until
And, Or, and Not
Break, Exit and Continue
The Abort Function
Object Pascal Code Constructs
Begin...End Blocks
The With Keyword
Nested With Statements
The Program Keyword
The Unit Keyword
The Uses Clause
The Interface Section
The Implementation Section
The End. Keyword
Subsections
const
type
var
Procedures and Functions
Prototypes
Implementation
Nesting
Passing Parameters
Value and Variable Parameters
Const Parameters
Calling Functions and Procedures
Scope, Lifetime and Visibility
Forward Declarations
Error Handling
Resource Protection
Writing Object Pascal Code
Summary
Chapter 4 - Object Oriented Programming
OOP Terminology
Understanding Objects
Objects are Variables
Objects are Collections
Classes Define Objects
Instantiating Objects
Destroying Objects
The Object Instance in Memory
Instances vs. References
Copying Objects
Passing Objects as Parameters
The Sender Parameter
Using the is and as Operators
Objects Have Methods
Self
Self vs. Sender
Working with Objects
Summary
Chapter 5 - The Integrated Development Environment
Parts of the IDE
The Menu Bar
The Menu Items
Popup Menus
Component Menus
The Toolbar
Configuring the Toolbar
The Tool Palette
Adding Components to Forms
The Structure Panel
The Object Inspector
Properties on the Object Inspector
Events on the Object Inspector
Color-Coding on the Object Inspector
The Object Selector
Displaying Common Properties for Multiple Objects
Navigating the Object Inspector
Object Inspector and Code Generation
Code Generation Errors
Understanding the Code Generation System
The Form Designer
The Code Editor
Two-Way Tools
Brief Emulation
The Project Manager
The Menu Designer
Menu Templates
Popup Menus
Packages
Programming by Exception
Working with Units
Environment Options
Project Options
The Integrated Debugger
Invoking the Debugger
Running the Debugger
Summary
Chapter 6 - The Object Repository
Viewing the Object Repository
Copy, Inherit or Use?
Object Inheritance
The Object Repository Pages
Commonly Used Objects
Form Inheritance
Properties in Inherited Forms
Event Handlers in Inherited Forms
Form Inheritance in Code
Templates
Project Templates
Form Templates
Inheritable Templates
Menu Templates
Component Templates
Removing Component Templates
Summary
Chapter 7 - Forms
Form Units
The Form's .PAS File
The Form's Class Definition
Form Variables
.DFM Files
The Parent Hierarchy
The Parent Property
Container Controls
Containership in the .DFM File
The Controls Array
Parent-Controlled Properties
The Owner Hierarchy
The Owner Property
The Components Array
Implicit Creation of Components
Implicit Destruction of Components
Explicit Component Creation
Intercepting Events at Runtime
Creating Components at Runtime
Creating Forms at Runtime
Auto-Created Forms
Creating Forms Manually
Destroying Forms with Free
Destroying Forms in the OnClose Event
The Release Method
The Forms Hierarchy
The Application Object
The Forms Array
Counting Forms
Searching for Forms
Batch Operations on Forms
Single-Instance Forms
Managing Forms at Runtime
Form Styles
Modal Forms
Modal Results
Dialogs
Creating a Dialog
Adding ModalResult Buttons
Displaying a Dialog
Dialogs in the Object Repository
Dialogs in the Windows API
MDI and SDI Forms
SDI Forms
MDI Forms
Creating MDI Forms
Working with Form Styles
Summary
Chapter 8 - Menus and Toolbars
Menus
Menu Components
Shortcut Keys and Caption Shortcuts
Creating Menus
Working with Menus
Menus in MDI Applications
Popup Menus
Creating PopupMenus
Attaching a Popup Menu to a Component
Toolbars
Using TControlBar
Using TToolBar
ToolButtons
TToolButton Properties
ToolButton Styles
Using TCoolBar
CoolBands
Action Lists
The TActionList Component
Standard Actions
Action Items
Using Action Items
Working with Menus, Toolbars and Action Items
Summary
Chapter 9 - Components
Component Groups
Components Grouped by Functionality
Components Grouped by Hierarchy
The 'Standard' Components
Visual vs. Non-visual Components
Design Steps
Creating the 'Standard' Application
Property Compatibility
Naming Conventions for Components
The Edit Component
The Memo Component
The Memo.Lines Property
Runtime-only Properties
Radio Groups
Working with TStrings Objects
Handling Events
Events
Event Properties
Event Handlers
Creating Event Handlers
Default Event Handlers
Delegation
Controlling Component Interaction Using Event Handlers
The SET Technique
Managing Menu Items
Default Controls
Making Components Interact
Sharing Event Handlers
Synchronizing Menu Items
Working with Shared Event Handlers
Event Handler Compatibility
Naming Conventions for Event Handlers
Managing Radio Buttons
The Listbox Component
The Checkbox Component
Set Properties
Set Operators
More Component Interaction
Cleaning Up
Primary Controls
Persistence
Implementing State Management
Summary
Chapter 10 - The Visual Component Library
The 'Additional' Components and Win32 Components
Windowed vs. Non-Windowed Controls
TWinControl
Using Container Controls
TPageControl and TTabSheet
Creating the 'Additional' Application
The StringGrid Component
The Cells Property
Row and Column Headers
Accessing Cell Values
StringGrid Options
Working with StringGrids
Working with Images
The Picture Property
Working with Scroll Boxes
Completing the Additional Application
The Win32 Components
The System Components
Using the MediaPlayer Component
Creating the Media Player Application
Using the Timer Component
Using the PaintBox Component
Drawing on a Paintbox
Other VCL Components
User Interface Components
Database Components
Internet Components
The Sample Components
Summary
Chapter 11 - The Database Components
Database Components
Creating a Database Application
Connecting to Datasets
Using the TDBNavigator Component
Working with Datasets
Master-Detail Relationships
The MasterSource and MasterFields Properties
Sharing TDBNavigator
Implementing a Master-Detail Relationship
Queries
Working with Queries
The dbGo Components
Using the dbGo Components
More on Database Development
Appendix A - Delphi Resources
Internet
Books
Magazines
Tools
Appendix B - File Extensions