FMX.Mobile.KeyboardToolbar Sample (Object Pascal)

From Appmethod Code Examples
Jump to: navigation, search

This is a sample that shows the use of a popup keyboard in mobile applications using FireMonkey.

Note: This sample application only works on iOS. It does not work on Android.

Location

You can find the FireMonkeyMobile KeyboardToolbar sample project at:

Description

This application illustrates how to customize the toolbar associated to the virtual keyboard using the IFMXVirtualKeyboardToolbarService.

How to Use the Sample

  1. Navigate to the location given above and open KeyboardToolbar.dproj.
  2. Press F9 or choose Run > Run.
  3. To observe the functionality of the Keyboard Toolbar, follow the steps:
  • To invoke the virtual keyboard, use the TEdit control.
  • To enable or disable the Keyboard Toolbar, switch the TSwitch control On or Off .
  • To add a TVirtualKeyboardToolButton to the Keyboard Toolbar, use the Add button. Notice that the button is visible in the Keyboard Toolbar and in the TListBox.
  • To remove a TVirtualKeyboardToolButton from the Keyboard Toolbar, select the button from the TListBox and press the Delete button.

Classes

FireMonkey KeyboardToolbar represents the main window of the sample. It contains the following components:

Implementation

Uses

See Also