Registriert seit: 18. Mär 2004
Ort: Luxembourg
3.492 Beiträge
Delphi 7 Enterprise
|
AW: Tastatur mit "Ok" und "Weiter"?
27. Mär 2014, 13:31
So könnte es gehen:
Delphi-Quellcode:
uses
FMX.Platform,
FMX.VirtualKeyboard;
procedure TForm1.VirtualKeyBoardButtonEvent(Sender: TObject);
begin
ShowMessage(TVirtualKeyboardToolButton(Sender).Title);
end;
procedure TForm1.FormVirtualKeyboardShown(Sender: TObject;
KeyboardVisible: Boolean; const Bounds: TRect);
const
B_TITLE = 'Drücken';
var
VKbBarSvc : IFMXVirtualKeyboardToolbarService;
i : integer;
begin
if (TPlatformServices.Current.SupportsPlatformService(IFMXVirtualKeyboardToolbarService, IInterface(VKbBarSvc))) then
begin
for i := 0 to VkbBarSvc.ButtonsCount-1 do
begin
if VKbBarSvc.GetButtonByIndex(i).Title = B_TITLE then
begin
ShowMessage('Will schon '+B_TITLE);
exit;
end;
end;
VKbBarSvc.AddButton(B_TITLE, VirtualKeyBoardButtonEvent);
end;
end;
Ibi fas ubi proxima merces
sudo /Developer/Library/uninstall-devtools --mode=all
|