Delphi
Delphi , . . Borland Delphi 7 Delphi 7 (. 6).
. 6. Delphi
Delphi (. 7). :
- Delphi 7;
- Form 1;
- Object Inspector;
- Object TreeView;
- Unitl.pas.
.
. 7. Delphi
(. 8) , .
(Form1) .
. , . . .
. 8.
Object Inspector (. 9) . ( , , .). , , . , width Height ( ) , Left , caption .
. 9. Properties
. 10.
(. 10), , , . Delphi .
Delphi , , , . . 11.
. 11.
Delphi. , File () New | Application ( | ).
, Delphi , . .
Form1 ( , ).
(. 1) : , , , .
Object Inspector. Object Inspector , . Properties () , .
|
|
1. ( form)
Name | . | ||
Caption | |||
Width | |||
Height | |||
Top | |||
Left | |||
BorderStyle | . (bsSizeable), (bs Single) (bsNone). , . . , . - | ||
Borderlcons Icon Color Font | . , . biSystemMenu, biMinimaze, biMaximaze biHelp. biSystemMenu , biMinimaze , biMaximaze , biHelp , . , . , . , " " , . Font Font , . Font ( ) | ||
caption (). Form1 " ". , Object Inspector Caption, , , " " (. 12).
Height width, . , , . . . Height width 250 330 .
|
|
. , , . . ( ) . Height width. .
. 12.
, ( ) Left ( ). .
, , Borderstyle, . , (. 13).
, . . () . "+", (. 14). , BorderIcons , . , biMaximize False, .
. 13.
. 14. BorderIcons
. , . , Font , .
. 2 , . .
2.
Caption | |||
Height | |||
Width | |||
BorderStyle | bsSingle | ||
BorderIcons. biMinimize | False | ||
BorderIcons. biMaximize | False | ||
Font. Size | |||
. , . , , . 15.
. 15.
, . , , . Edit .
Standard (. 16).
, , , , , . .
. 16. Standard
. , , , , , , . .
|
|
Delphi , . , Edit, Edit1 Edit2. Name . , , .
. 17 Edit , . . Object Inspector. , . Object TreeView Object Inspector .
. 17. Edit
. 3 Edit -.
. Edit ( -)
Name | . , , | ||
Text | , | ||
Left | |||
Top | |||
Height | |||
Width | |||
Font | , | ||
ParentFont | , . True, Font Font | ||
Delphi .
, , , , , . (. 18) ( Left ).
, , , , , , . . Height Width (. 19).
, , Object Inspector. Object Inspector, ( ). Object Inspector (. 20) Object TreeView (. 21).
. 18. Left
|
|
. 19. Height Width
. 20.
. 21. Object Inspector Object TreeView
. 4 Editi Edit2. Editi , Edit2 .
, Text .
4. Edi t
Edit1 | Edit2 | |||
Text | ||||
Left | ||||
Height | ||||
Width | ||||
. . ( ) Label. Label Standard (. 22). Label , .
. 22. Label
Label. , , ().
Label . 5.
5. Label ( )
Name | . | ||
Caption | |||
Font | , | ||
ParentFont | , . True, , | ||
AutoSize | , | ||
Left | |||
Top | |||
Height | |||
Width | |||
Wordwrap | , , , | ||
Autosize Wordwrap. , . Label Autosize True, . . caption. , , Label Autosize False, wordwrap True. width Height . caption , .
( Label) . 6 , . 23.
, caption . , Autosize wordwrap, .
. 23.
6. Label1, Label2, Label3 Label4
Labell | AutoSize | False | ||
Wordwrap | True | |||
Caption | , | |||
Top | ||||
Left | ||||
Height | ||||
Width | ||||
Label2 | Top | |||
Left | ||||
Caption | () | |||
Label3 | Top | |||
Left | ||||
Caption | (, ) | |||
Label4 | AutoSize | False | ||
Wordwrap | True | |||
Top | ||||
|
|
Label 4 | Left | |||
Height | ||||
Width | ||||
, : . .
, Button, , . Button Standard (. 24). . 7.
. 24. Button
7. Button ( )
Name | . | ||
Caption | |||
Enabled | . , True, , False | ||
Left | |||
Top | |||
Height | |||
Width | |||
. 8.
8. Button1 Button2
Button1 | Button2 | |||
Caption | ||||
Left | ||||
Height | ||||
Width | ||||
. 25.
. 25.
, . Windows :
- ;
- .
, . , . , Windows .
(Event) , . Delphi . , - OnClick, OnDblClick.
. 9 Windows.
9.
OnClick | |||
OnDblClick | |||
OnMouseDown | |||
OnMouseUp | |||
OnMouseMove | |||
OnKeyPress | |||
OnKeyDown | . OnKeyDown OnKeyPress , , , ( OnKeyUp) | ||
OnKeyUp | |||
OnCreate | (, ). , | ||
OnPaint | , , , , , | ||
OnEnter | |||
OnExit | |||
- . Delphi . , , . , . , . , , Edit, , OnKeyPress , . . ( ) .
OnClick .
, Object Inspector , . Events ().
. 26. Events , ( )
Events (. 26) , (). () , .
, . , , Object Inspector (. 27).
Delphi , . , (), . . Form1, Buttoni, -Click.
. 27. , Delphi
begin end , .
1 onclick . , . , : , ( ). , .