Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: C++ Builder XE8 - IOS Style Input Box


This question is answered.


Permlink Replies: 1 - Last Post: Apr 25, 2016 2:18 PM Last Post By: Yilmaz Yoru
Anupama Annambh...

Posts: 24
Registered: 1/16/15
C++ Builder XE8 - IOS Style Input Box  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 19, 2016 11:57 AM
Hi,

Which FMX control is equivalent to the IOS style input dialog box?
It needs to have a Title, One Input Edit field and one Button. This has to be blocking until the user presses the Button.

Here is an example image in this URL http://ioscodesnippets.com/?p=122
The native class is UIAlertView. Is there any control in FMX that simulates this or should we create our own using layouts, edit boxes, buttons and labels

Thank you!
Yilmaz Yoru


Posts: 167
Registered: 1/1/03
Re: C++ Builder XE8 - IOS Style Input Box
Correct
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 25, 2016 2:16 PM   in response to: Anupama Annambh... in response to: Anupama Annambh...
Anupama Annambhatla wrote:
Hi,

Which FMX control is equivalent to the IOS style input dialog box?
It needs to have a Title, One Input Edit field and one Button. This has to be blocking until the user presses the Button.

Here is an example image in this URL http://ioscodesnippets.com/?p=122
The native class is UIAlertView. Is there any control in FMX that simulates this or should we create our own using layouts, edit boxes, buttons and labels

Thank you!

--

You can use InputBox() as below;

String InputString = InputBox(L"Input Box", L"Prompt", L"Default ઞએઽ૪ string");

also there is InputQuery() as below;

UnicodeString NewString = "Default String";
if (InputQuery("Input Box", "Prompt", NewString))
// NewString has been changed by the user, who clicked OK.
Label1->Caption = NewString;

Plus you can create a special form and labels and TEdit component on a new Form, and you can show your custom form as below

Form2-> Show();

or Form2->ShowModal();

You can change the style of this and above to the iOS visuals by the right click on forms and selecting Default Style or Custom Style.

I hope this helps :)

--
Best Regards
Dr. Yilmaz Yoru
Esenja Company
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02