You are on page 1of 50

Delphi

Delphi

: Delphi
Delphi .

. .Productivity
Delphi
.Windows Quality
Delphi .
) (1 :


Compiler .

Flexibility Scalability .

Framework.

12

) (1 Delphi


.
.Delphi
Delphi
Delphi 7
)
(.

View | Additional Message Info



Compiler Borland .

.
| Options

Project

CLX
CLX .Delphi .

13

Delphi


.VCL





Indy Indy I/O


) Delphi Professional .(Delphi Enterprise
IW Control IW Client Side IW Data IW Standard
Intra Web .
Rave .


) (Ctrl + click
.
HTML HTML
) . Delphi Professional
.( Delphi Enterprise
API.
Code Insight page
.

Tools | Editor Options


Delphi .

Delphi :


Delphi .

14

Delphi
.

Delphi

Borland

.Delphi32

Delphi32.exe .

Delphi

. (Integrated Development Environment ) IDE
.1

Delphi IDE
) (2
. ) (Main window
) (Main Menu ) (Component Palette
) (Toolbars .
) (Form Designer ) (Code Editor )(Object Inspector
) (Object TreeView ).(Code Explorer
) (

.
Delphi
.

) GUI (Graphical User Interface
)( .
Delphi

Delphi

15


.IDE

) (2 Delphi

1.1

Delphi .
Windows
:
.
2.1

Windows

.

16

3.1

Delphi

) ( Single click

.Delphi IDE .
Button Tooltip
. IDE
: Debug
Desktops Standard .View
) (2 .
Customize
. ) (3 .

. .

) (3

IDE
.

.

Delphi

17


Undocked
. ) (4 .

) (4

4.1


VCL ActiveX
.IDE
Component | Configure Palette .
5.1


)( .
.

.
.
.

18

6.1


.
Properties
. Events
.


.
Windows .
tabs .

. Delphi

.
Arrange . ) (5

.
View .
7.1

.
)
(Unit . Delphi
.

.

Delphi

19

) (5 ) (
) (


View | New Edit Window
.

8.1

Tree Style .

.
One to one
.
. Filtering

20

Sorting
Explorer .Environment Options Dialog box
9.1


.
Parent child
Property to Component
.Property to Property to Component
.2

Windows

. Delphi
).(6

) (6 Delphi


. )(7
:


) (
.
)(
.

21

Delphi

) (7

)(
.

.

cut keys

Short

) Enabled (
.

.
1.2

File


:New ) (8
.Delphi

22

) (8 File | New

) (9 File | New | other

Application
GUI Form
Unit
Other New Items

Delphi

23

) (9
.Delphi
:Open Open dialog Box
) (unit.pas Delphi
Delphi
).(*.dpr
:Open Project
Delphi
Delphi ).(*.dpr
Open dialog Box

:Reopen
. .
Delphi
).(10
:Save
.

) (10 File | ReOpen

24

Delphi
Save As dialog Box
.



.File | Save

:Save As
.
:Save Project As ) (*.dpr
. / )(*.dpr

.
:Save All
.
:Close .

File | Close .

.

:Close All
.
.

Delphi

25

Project Manager
.

:Use Unit Unit


clause .
Public
.
uses

:Print
. Delphi
Print Selection dialog box
) .(11 Delphi
Print Form dialog box ).(11

) (11

) (21

26

:Exit .Delphi

Delphi
Delphi
.

Edit

2.2

:
:Undo/ Undelete
Edit | Undelete
.
.Undo
:Redo Undo .
Undo .
:Cut
) ( Clipboard :


)

) (Alt + F10 (.

. Menu designer


.Edit | Paste

27

Delphi

:Copy

.
.
:Paste
.

:Delete
.
:Select All )(
.

.
:Align to Grid
.



Shift
.

28


Designer | Tools
Environment Options ).(13

) (13

:Bring to Front
. z
.
:Send to Back
.
:Align
).(14

Alignment dialog box

29

Delphi

) (14

:
No Change

Left Sides

) (.

Centers

Right Sides

) (.

Tops

) (.

Bottoms

) (.
.
.

:Size
).(15

Space Equal
Center in Window

dialog box

Size

30

) (15

No Change

.
.
.

Shrink to Smallest
Grow to Largest

Width

Height

: Scale Scale dialog box



) .(16
25% .400%
100%
100%
.

31

Delphi

) (16

:Flip Children

.

.
:



:All .
:Selected
.

:Lock Controls
.
.
.

32

3.2

Search


:Find Find Text )(17
.

) (17

:
.
.

Case sensitive
Whole words only

.
.

Regular expressions
Forward

) (.
.

Backward

33

Delphi

Global

Selected text

From cursor

Entire scope

:Find in Files
Text ) (18
.

Find

:
.

Case sensitive

Whole words only

.
.
.

Regular expressions
Search all files in project

Search all open files

Search in directories

.
.

File masks

*.pas *.dpr
* *. *.txt .

.

Include subdirectories

34

) (18

:Replace
).(19

Replace Text

) (19

35

Delphi

:
.
.

Case sensitive
Whole words only

.
.

Regular expressions
Prompt on replace

.
.

Forward

) (.
.

Backward

Global

Selected text

From cursor

Entire scope

:Search Again
.
:Incremental Search .
)(
.


' ' . Searching For: .

36

Form
F ) (20
Fo o
For r .Form

) (20

Backspace

.
).(default

F3

).(Classic

Ctrl + L

).(Epsilon

Ctrl + S

).(Brief

Shift + F5

: Go To Line Number
.Number ) (21
.
Go To Line

Delphi

37

) (21

: Browse Symbol
) (22 .


.OK
Browse Symbol

) (22

OK Delphi

)( .
.Project Browser
4.2

View


: Project Manager Delphi

38

DLL . )
(...
).(23

) (23

:Object Inspector
).(24
:Object TreeView ) (24
) (
.

.


.

Delphi

39

) (24

:Alignment Palette

).(25

) (25

:Browser ) (26
)
(
.

40

) (26

:Code Explorer Delphi ) (27





.uses


.
:Component List )
(26
.

41

Delphi

) (27 Delphi

) (28

:Window List
box ) (29
. .
Window List dialog

:Toggle Form / Unit .


:Toolbars .

42

) (29

5.2

Project


:Add to Project
Add To Project dialog box
).(30

) (30

43

Delphi

:Remove from Project


Remove from Project Dialog Box
).(31

) (31

:View Source ) (.dpr


.
:Compile Project
) (.exe
) (.dll ) (.res Build
.
: Information for
box ) (32 .

Information dialog

:Options
" :
" ).(33

44

) (32

) (33

6.2

Run


:Run .

Delphi

45

:Step Over
) (
.
:Trace Into
.
:Run to Cursor
.
:Program Pause .
:Program Reset .
7.2

Components


:New Component
New Component dialog Box
).(34

) (34

46

:Configure Palette
Palette Properties dialog box ) (35
.

) (35

8.2

Database


:Explore SQL
).(36

Delphi

47

) (36

9.2

Tools


: Environment Options
Delphi ) (37
IDE .
:Editor Options
) (38
.
:Configure Tools
) (39 / Delphi
Windows
.Delphi

48

) (37 Delphi

) (38

49

Delphi

) (39

10.2

Help

Delphi
Borland
.
.3


:
1.3

Visible


Buttons
Drop down List .. Edit Boxes.

50

2.3


.
. Timer
.
) (40

)( .
:
Standard Windows
Additional Dialogs
Windows .

) (40


:
 .

.

51

Delphi


Shift

) (41
.

.

) (41


:
 .
 )
(

Top , Left
.


:

).(42

52

) (42



Width, Height
.

)
(


:


.
.Rubber band

.Shift

53

Delphi



.

)( .


.
Delphi

.4

Delphi
:
1.4

) (.

Enter ).(43

) (43

54

2.4

) (44
.

) (44

3.4


Pause
.
4.4

) (identifiers
Delphi ).(45

) (45

Delphi

55

5.4

) (Ctrl + J Delphi
) (46

Delphi .

) (46 Delphi

6.4

Delphi

Interface )(Ctrl + Shift + c

.Complete class at cursor
7.4


Ctrl

56


.
) (Ctrl + Shift +
). (Ctrl + Shift +
8.4

Delphi
.
) .(Ctrl + Space )(47
.

) (47 Delphi

Delphi
:
.1

View .

.2

.3


) (48
.

Delphi

.4

57

) (tab
.

.5




Ctrl .

) (48 Delphi
)(
:
.1
.
.2

).(49

) (49

58

.5

Delphi IDE
Object Pascal .
File | New Application

:

;unit Unit1
interface
uses
Windows, Messages, SysUtils, Variants, Classes,
;Graphics, Controls, Forms, Dialogs

type
) TForm1 = class ( TForm
private
} { Private declarations
public
} { Public declarations
;end
var
;Form1 : TForm1
implementation
}{$R *.dfm
end.


.Unit.pas
.

59

Delphi

:
type
)TForm1 = class(TForm
private
} { Private declarations
public
} { Public declarations
;end

TForm
Public Private
. Class, Public, Private .
:
}{$R *.dfm

$R Object Pascal
. ) ( *.dfm Delphi
Form . *.dfm binary
representation . )*(
) (dfm .
Unit1.pas ) (*.dfm
.Unit1.dfm

IDE
DFM .

New Form As Text Check box Preference
.Environment Options

60

.6

) (*.dpr Delphi Project


Pascal .
.
Project | View Source
. .

;program Project1

uses
Forms,
;}Unit1 in ' Unit1.pas ' {Form1

}{$R *.res

begin
;Application.Initialize
;) Application.CreateForm ( TForm1, Form1
;Application.Run
end.

uses
. uses
}.{Form1


.

.DPR

You might also like