2011-08-09 08:23:10 +00:00
|
|
|
unit mainform;
|
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
|
|
|
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
|
|
|
|
StdCtrls;
|
|
|
|
|
|
|
|
type
|
|
|
|
|
|
|
|
{ TForm2 }
|
|
|
|
|
|
|
|
TForm2 = class(TForm)
|
|
|
|
Button1: TButton;
|
2011-08-10 11:42:11 +00:00
|
|
|
CheckBox1: TCheckBox;
|
|
|
|
ComboBox1: TComboBox;
|
|
|
|
Edit1: TEdit;
|
2011-08-19 15:25:57 +00:00
|
|
|
Edit2: TEdit;
|
2011-08-10 11:42:11 +00:00
|
|
|
StaticText1: TStaticText;
|
2011-08-19 15:25:57 +00:00
|
|
|
procedure Button1Click(Sender: TObject);
|
2011-08-09 08:23:10 +00:00
|
|
|
private
|
|
|
|
{ private declarations }
|
|
|
|
public
|
|
|
|
{ public declarations }
|
|
|
|
end;
|
|
|
|
|
|
|
|
var
|
|
|
|
Form2: TForm2;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
2011-08-19 15:25:57 +00:00
|
|
|
{$ifdef LCLAndroid}
|
|
|
|
uses androidpipescomm;
|
|
|
|
{$endif}
|
|
|
|
|
|
|
|
{ TForm2 }
|
|
|
|
|
|
|
|
procedure TForm2.Button1Click(Sender: TObject);
|
|
|
|
var
|
|
|
|
lChecked, lEdit1Text: String;
|
|
|
|
lComboBox: String;
|
|
|
|
begin
|
|
|
|
if CheckBox1.Checked then lChecked := 'True'
|
|
|
|
else lChecked := 'False';
|
|
|
|
|
|
|
|
vAndroidPipesComm.Log('3');
|
|
|
|
lEdit1Text := Edit1.Text;
|
|
|
|
|
|
|
|
vAndroidPipesComm.Log('4');
|
|
|
|
lComboBox := IntToStr(ComboBox1.ItemIndex);
|
|
|
|
|
|
|
|
vAndroidPipesComm.Log('5');
|
|
|
|
|
|
|
|
Edit2.Text :=
|
|
|
|
'Edit1.Text='+lEdit1Text+LineEnding+
|
|
|
|
'Caption='+Caption+LineEnding+
|
|
|
|
'Checked?='+lChecked+LineEnding+
|
|
|
|
'ComboBox='+lComboBox;
|
|
|
|
end;
|
|
|
|
|
2011-08-09 08:23:10 +00:00
|
|
|
initialization
|
|
|
|
{$I mainform.lrs}
|
|
|
|
|
|
|
|
end.
|
|
|
|
|