: , .
:
1 Button .
2 BitBtn .
3 SpeedButton .
4 CheckBox .
1 Button
TButton . OnClick.
Tbutton
property Cancel: Boolean; | True, OnClick <Esc> |
property Default: Boolean; | True, OnClick <Enter> |
type TModalResult = Low (Integer).. High (Integer); property ModalResult: TModalResult; | , |
Windows , , , . , . ModalResult, ModalResult . Delphi ModalResult: mrNone ; mrOk ; mrnl Cancel; mrAbort Abort; mrRetry Retry; mrIgnore Ignore; mrYes Yes; mrNo No; mrAll All.
TButton Windows Windows. clBtnFace Color. , .
2 BitBtn
TBitBtn TButton. Ee Glyph, . Delphi , .
Kind 11 .
, bkcustom bkHelp, mrXXX (bkOk mrOk, bkCancel mrCancel . .). bkClose mrCancel, a . bkHelp , HelpContext , . ( Glyph), Delphi Kind bkCustom. , (Default=True), Kind bkok bkYes, , , Cancel True, Kind bkcancel bkNo.
|
|
TButton, , , Tbutton, . Default , , <Enter> Onclick. , , bkYes bkNo, - Kind bkcustom Default True, Default False Kind , bkYes, bkNo bkCustom.
3 SpeedButton
TSpeedButton TBitBtn -: -, , -, , , , . TBitBtn.
- ( ). Grouplndex: Integer, 0. AllowAllup: True, , ; AllowAllUp=False, . Down, True, . , .
4 CheckBox
TCheckBox , / // ( , ). state , , . TCheckBox,: :
if CheckBoxl.Checked then
else
:
case CheckBoxl.State of
cbChecked:...;
cbUnchecked:...;
cbGrayed:...;
end;