Touching the screen
FireMonkey forms provide support for handling simple touch, multi-touch, and gesture events. You can use standard and interactive gestures, such as zoom and rotation, to make your apps more dynamic and interactive.
Touch
FireMonkey forms are used for building both mobile and desktop applications. It is just a matter of changing the selected Target Platform and recompiling the project. Certain concepts exist on desktops that do not exist on mobile platforms and vice versa. For example, on mobile devices, there is no concept of a mouse, but this exists on desktops. FireMonkey forms provide different mouse events that are fired in response to simple touch events on mobile platforms. When the end user touches the screen, the OnMouseDown
event is fired. Other events, such as OnMouseUp
and OnMouseMove
, are fired when the user stops touching the screen, or when the touch point changes. For individual controls, there are also two additional events, OnMouseEnter
and...