14.
: Delphi. Delphi. Delphi.
: Delphi 7, , (Label, Edit), Button, BitBtn.
:
1. - .
2. .
3. Delphi 7.
4. (Label, Edit).
5. (Button, BitBtn).
:
. - . , , , .
Windows , , , , , .
, Windows, . . Borland C++ for Windows, , .
, , " ", Borland Delphi Microsoft Visual Basic. (RAD-, Rapid Application Development - ) , , , . RAD- - !
Delphi - , Delphi. Delphi - - , Object Pascal.
Delphi , .. Borland Delphi 7 Delphi 7.
Delphi (.22.1). :
1. - Delphi 7;
2. - Form1;
3. - (Object Inspector);
4. - (Object TreeView);
|
|
5. - Unit1.pas.
.
, .
(Form1) .
. - , . . .
(Object Inspector) - . - ( , , .). - , , . , Width Height ( ) , T Left , Caption - .
, , , . Delphi .
(Standard).
, , , , , . .
(Standard)
. , , , , , , . .
Delphi , . , Edit, Edit1 Edit2. Name . , , .
22.1 Edit - -.
22.1. Edit ( -)
Name | . , - , |
Text | , |
Left | |
Top | |
Height | |
Width | |
Font | , |
ParentFont | , . True, Font Font |
Delphi .
|
|
, , , , , . ( Left ).
, , , , , , . . Height Width.
, , (Object Inspector). (Object Inspector), ( ). (Object Inspector) (Object TreeView).
. . ( ) - Label. Label (Standard). Label , .
Label 22.2.
22.2. Label ( )
Name | . |
Caption | |
Font | , |
ParentFont | , . True, , |
AutoSize | , |
Left | |
Top | |
Height | |
Width | |
Wordwrap | , , , |
Autosize Wordwrap. , . Label Autosize True, .. aption. , , Label Autosize False, Wordwrap - True. Width Height . aption , .
, Button, , . Button (Standard). 22.3.
22.3. Button ( )
Name | . |
Caption | |
Enabled | . , True, , False |
Left | |
Top | |
Height | |
Width |
|
|
TBitBtn ( ) . .
Glyph (). ( .BMP). Borland Shared ( Images/Buttons), Delphi 7.
1-4 , . , ( Enabled False), , . NumGlyphs ( 1 4). ( ) Margin.
Kind . . Kind 22.4.
22.4. Kind
bkCustom | |
bkOK | . ModalResult mrOK |
bkCancel | . ModalResult mrCancel |
bkYes | . ModalResult mrYes |
bkNo | . ModalResult mrNo |
bkHelp | , HelpContext |
bkClose | |
bkAbort | . |
bkRetry | |
bkIgnore | |
bkAll |
, bkCustom, Delphi7 .
Layout () . 22.5.
22.5. Layout
blGlyphLeft | |
blGlyphRight | |
blGlyphTop | |
blGlyphBottom |
( ) Spacing. TBitBtn Click, . , .
, . Windows :
1. ;
2. .
- , Windows .
(Event) - , . Delphi . , - OnClick, OnDblClick.
22.6 Windows.
22.6.
OnClick | |
OnDblClick | |
OnMouseDown | |
OnMouseUp | |
OnMouseMove | |
OnKeyPress | |
OnKeyDown | . OnKeyDown OnKeyPress , , , ( OnKeyUp) |
OnKeyUp | |
OnCreate | (, ). , |
OnPaint | , , , , , |
OnEnter | |
OnExit |
|
|
- . Delphi . , , . , . , . , , Edit, , OnKeyPress , . . ( ) .
, (Object Inspector) , . (Events).
(Events) , (). () , .
, . , , (Object Inspector) (.22.2).
Delphi , . , (), . . - Form1, Button1, Click (.22.3).
begin end , .
. / (Toglle Form/Unit), (View), <F12>.
|
|
, , . ( , . .), , <F1>.
, (Help) Delphi Help. . , , . , , , .
Delphi - . , , . Delphi.
dpr. , (Project) (View Source).
|
|
rogram, , . , . uses : Forms Unit1.pas.
{$R *.RES}, , . : , , . , , , res.
, . , , Resource Workshop. Delphi Image Editor, (Tools) Image Editor.
begin end. .
, , . Delphi .
unit, .
:
1. ;
2. ;
3. .
( interface) , . ( uses) , . Delphi , type.
implementation , , .
{$R *.DFM}, , . dfm, . Delphi .
($R *.DFM} . .
. ( ) begin end. , begin .
, Delphi. , Delphi, , ( type).
- , (-). (DOF-), (DPR-), (RES-), (DFM-), , , (PAS-), (CFG-).
, (File) (Save Project As). , Delphi ( ), Save Unit1 As. , , . , , .
, (pas-) (dpr-) . . , , , , - - , , .
, . |
- . . , - (-).
(Project) Project (Compile) (.22.4). Compiling. (Errors), (Warnings) (Hints). , .
, , . , . , "" .
, . , , - exe. Delphi , .
Delphi, . (Run) (Run) (Debug).
English | |||
(Project File) | |||
(Resource File) | |||
Құ | (Constructor) | ||
( ) | Class | ||
Component | |||
(Object Inspector) | |||
Program | |||
Ә | (Method) | ||
(Unit) | |||
ұ | (Inheritance) | ||
() | (Object) | ||
(Component Palette) | |||
Ө | (Field) | ||
Қ | (Application) | ||
Қ | (Property) | ||
қ қң | (Run-Time Type) | ||
(Form) | |||
( ө) | interface | ||
Compiling | |||
Operator | |||
( ө/ ) | rocedure | ||
, | Private | ||
() | , | Impelementation | |
Project | |||
қғ | Event |
:
1. . . . Delphi7. , 2006.
2. .. , .. . . -, 2005 .
3. .. Delphi -, 2005 .
4. .. Delphi . -, 2005 .
5. .. , .. . . , 2005 .
:
1. Delphi?
2. Delphi?
3. ObjectTreeView?
4. ObjectInspector?
5. , ?
6. ?
7. ?
8. ?
9. ?
10. ?
11. ?
12. ?
13. ?
14. ?
15. Autosize Wordwrap Label?