, Delphi ( -).
(dpr -), (pas -), (res -), (dfm -) . , File Save All . (Unit 1 ), (Project 1 ). |
| |
. (pas -) (dpr -) . . , , , - , , . |
. , !.
:
1. Delphi, Windows | . , File | New. Delphi, , No.
2. , , TButton Standard . . , Delphi Button 1.
3. Standard Label - . Delphi Label 1 - . .
4. , 10. .
5. Button 1 . Caption (), Button 1 .
6. Label 1, . , Font (), Style () true fsBold ().
7. Caption Label 1, , .
, Caption Label 1 . . OnClick. , . 8. Button 1 , , (Events), OnClick . . OnClick ( ) : Button 1 . Unit1.pas, (. . 12). |
|
|
(TFormI), (Button 1) On (Click).
9. Label 1. :
:= Object Pascal , , , , . Lab l 1. Caption , Caption Label 1. : , , . Caption !.
, , Ctrl + Label 1. . , Enter (, ) .
:
, , :
:
TForm
TLabel ,
TButton
:
Caption
Font
Color
Name
:
OnClick T utton (, ).