Browse Subversion Repository
Contents of /trunk/Unit2.pas
Parent Directory
| Revision Log
Revision 3 -
( show annotations)
( download)
( as text)
Sun Mar 1 10:41:56 2015 UTC
(9 years, 3 months ago)
by yamat0jp
File MIME type: text/x-pascal
File size: 750 byte(s)
| 1 |
unit Unit2; |
| 2 |
|
| 3 |
interface |
| 4 |
|
| 5 |
uses |
| 6 |
System.SysUtils, System.Types, System.UITypes, System.Classes, |
| 7 |
System.Variants, |
| 8 |
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls, |
| 9 |
FMX.Controls.Presentation, FMX.Edit, FMX.EditBox, FMX.SpinBox; |
| 10 |
|
| 11 |
type |
| 12 |
TForm2 = class(TForm) |
| 13 |
SpinBox1: TSpinBox; |
| 14 |
Label1: TLabel; |
| 15 |
Button1: TButton; |
| 16 |
Button2: TButton; |
| 17 |
Label2: TLabel; |
| 18 |
procedure Button1Click(Sender: TObject); |
| 19 |
private |
| 20 |
{ private éž } |
| 21 |
public |
| 22 |
{ public éž } |
| 23 |
end; |
| 24 |
|
| 25 |
var |
| 26 |
Form2: TForm2; |
| 27 |
|
| 28 |
implementation |
| 29 |
|
| 30 |
{$R *.fmx} |
| 31 |
|
| 32 |
procedure TForm2.Button1Click(Sender: TObject); |
| 33 |
begin |
| 34 |
if Sender = Button1 then |
| 35 |
ModalResult := mrOK |
| 36 |
else |
| 37 |
ModalResult := mrCancel; |
| 38 |
end; |
| 39 |
|
| 40 |
end. |
| |