![]() ![]() VKAutoShowMode := TVKAutoShowMode.Always The global variable VKAutoShowMode is set to Always in the.OnCalcContentBounds is used to increase the size of the working region. If the images of the control and the virtual keyboard overlap, then UpdateKBBounds shifts the visible region of the VertScrollBox1. The procedure TFormMain.UpdateKBBounds retrieves the coordinates of the control having the focus.The event handlers for the OnVirtualKeyboardShown and OnVirtualKeyboardHidden events of the TForm object are used to reposition the TVertScrollBox so that the entry field is not obscured by the Virtual Keyboard.This is useful on some hardware such as the iPad, on which the focus must change to a different control before the keyboard redisplays after being dismissed. TButton ("No edit control") is used to remove focus from a selected edit control.TEdit5 is also read-only and its Enabled property is set to False.TEdit4 is read-only (the ReadOnly property is set to True).TEdit3 uses the number pad (KeyboardType is NumberPad).TEdit2 uses the Default keyboard type (full QWERTY) for text entry.TEdit1 has the Align property set to Bottom and it is associated with the number pad (that is, its KeyboardType is NumberPad).TEdit controls: TEdit1 - TEdit5 are various types of edit fields.You can click on the TMemo and add or edit content using the virtual keyboard (its KeyboardType is Default). TMemo occupies the upper portion of the form.VertScrollBox1 occupies the display area on the form and contains the main layout control and all the edit fields in the app: When user selects an entry field, the form scrolls so that the keyboard is below the entry field Observe that for each control, when the Virtual Keyboard is displayed, the application moves the entry field to a position above the keyboard.Navigate to the one of the locations given above, and open:.This application shows how to scroll or situate the entry field just above the Virtual Keyboard, so that the entry field is not obscured by the keyboard. Search by name into the samples repositories according to your RAD Studio version. ![]() You can find Delphi and C code samples in GitHub Repositories.CPP\Multi-Device Samples\User Interface\ScrollableForm.Object Pascal\Multi-Device Samples\User Interface\ScrollableForm.Start | Programs | Embarcadero RAD Studio Sydney | Samples and navigate to:.I’d only add emphasis to one point that the app instructions make…make sure both devices are on the same WIFI network…sometimes networks switch from 2.5 to 5 GHz, and it can get the number pad out of sync with the laptop.You can find the FireMonkeyMobile ScrollableForm sample project at: Its setup isn’t necessarily “connect and go”, but once set up, it’s very reliable and portable between laptops. If you’ve been reluctant to try it and yet are frustrated by not having a usable external numeric, this is the solution. This Remote KeyPad
0 Comments
Leave a Reply. |