Prvni verze pred predanim (nove soubor empUtils.pas)
This commit is contained in:
4834
empUtils.pas
Normal file
4834
empUtils.pas
Normal file
File diff suppressed because it is too large
Load Diff
18
frmKeyb.pas
18
frmKeyb.pas
@ -11,8 +11,7 @@ type
|
||||
keyb1: TTouchKeyboard;
|
||||
edtPopis: TEdit;
|
||||
procedure FormShow (Sender: TObject);
|
||||
procedure edtPopisKeyDown(Sender: TObject; var Key: Word;
|
||||
Shift: TShiftState);
|
||||
procedure edtPopisKeyDown (Sender: TObject; var Key: Word; Shift: TShiftState);
|
||||
private
|
||||
public
|
||||
text: string;
|
||||
@ -20,6 +19,7 @@ type
|
||||
|
||||
var
|
||||
formKeyb: TformKeyb;
|
||||
kbdLayout: TTouchKeyboardLayout;
|
||||
|
||||
implementation
|
||||
|
||||
@ -45,6 +45,20 @@ implementation
|
||||
|
||||
procedure TformKeyb.FormShow (Sender: TObject);
|
||||
begin
|
||||
kbdLayout:= TTouchKeyboardLayout.Create;
|
||||
|
||||
with TTouchKeyboardButton.Create do
|
||||
begin
|
||||
Text := 'A';
|
||||
Caption := 'A';
|
||||
SetBounds(10, 10, 50, 50);
|
||||
ButtonType := TTouchKeyboardButtonType.kbChar;
|
||||
kbdLayout.Buttons.Add(Self);
|
||||
end;
|
||||
|
||||
|
||||
keyb1.Keyboard:= kbdLayout;
|
||||
|
||||
edtPopis.Text:= '';
|
||||
edtPopis.SetFocus;
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user