android example: Updates to the latest lcl

git-svn-id: trunk@33830 -
This commit is contained in:
sekelsenmat 2011-11-28 14:40:08 +00:00
parent 2617db3cbc
commit 8fc57de450
3 changed files with 9 additions and 2 deletions

View File

@ -14,8 +14,7 @@ uses
{$ifdef Android}
exports
Java_com_pascal_lclproject_LCLActivity_stringFromJNI name 'Java_com_pascal_lcltest_LCLActivity_stringFromJNI',
Java_com_pascal_lclproject_LCLActivity_intFromJNI name 'Java_com_pascal_lcltest_LCLActivity_intFromJNI',
Java_com_pascal_lclproject_LCLActivity_LCLOnTouch name 'Java_com_pascal_lcltest_LCLActivity_LCLOnTouch',
Java_com_pascal_lclproject_LCLActivity_LCLDrawToBitmap name 'Java_com_pascal_lcltest_LCLActivity_LCLDrawToBitmap',
JNI_OnLoad name 'JNI_OnLoad',
JNI_OnUnload name 'JNI_OnUnload';

View File

@ -4,6 +4,7 @@ object Form1: TForm1
Top = 186
Width = 320
Caption = 'Form1'
OnClick = FormClick
OnCreate = FormCreate
OnPaint = FormPaint
LCLVersion = '0.9.31'

View File

@ -19,6 +19,7 @@ type
{ TForm1 }
TForm1 = class(TForm)
procedure FormClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormPaint(Sender: TObject);
private
@ -26,6 +27,7 @@ type
public
{ public declarations }
SubControl: TSubControl;
ClickCounter: Integer;
end;
var
@ -45,6 +47,11 @@ end;
{ TForm1 }
procedure TForm1.FormClick(Sender: TObject);
begin
Caption := Format('Form click #%d', [ClickCounter]);
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
SubControl := TSubControl.Create(Self);