Reputation: 147
Is there anyway I can use an InputBox for android? I have tried looking online but found nothing. I'm not sure if it's something to do with permissions or what.
I have tried using this method but still no luck:
New Non Blocking InputBox Function In Delphi XE7 Firemonkey On Android And IOS
I'm using Android 6.0.1 and Android 25.2.5 SDK and API 25.
The InputBox is grayed out
and when using it:
I'm new to FireMonkey.
Upvotes: 0
Views: 4928
Reputation: 93
You can use the inputbox like this. Remember that the inputbox is not modal. User answer is handled in the anonymous method that is provided as 4th parameter.
InputBox('Box Caption','Box prompt','Default value',
procedure(const AResult: TModalResult; const AValue: string)
begin
// This is executed when user closes the input box
// Check result and value here and do whatever is needed
end
);
Upvotes: 2