Tuto WINDEV Mobile 25

70 Part 3: iOS application Touchscreen management One of the most important aspects of the interface for a mobile application is the touchscreen management. A "multi-touch" feature is a technique allowing the user to interact with a device via several contact points. Handling images is one of the most common multi-touch features. The display size on a phone being reduced, it is often necessary to zoom an image and/or to move inside an image. This allows you to perform a zoom on an image via the contact of 2 fingers moving apart. To manage the "multi-touch", WINDEV Mobile proposes: • Specific options available in the Image control. • Specific WLanguage functions. • Specific optional events. See the online help for more details. Practical example ▶ Open (if necessary) the "My_iOS_Project" project that was created in the previous lesson. Answer A corrected project is available. To open this project, in the WINDEV Mobile home page (Ctrl + <), click "Tutorial" and select "My iOS project (Answer)". ▶ In the "WIN_Welcome" window, create an Image control: 1. On the "Creation" pane, in the "Usual controls" group, click "Image". 2.  The Image control appears in creation under the mouse. 3. Move the mouse in the window toward the position where the control will be created. To drop the control in the window, simply click again. 4. Double-click the Image control: the description window of control is displayed. 5.  In the "General" tab, select an image from your disk in the "Image" edit control (via , "Browse"). 6.  If the image is found in a directory other than the project directory, WINDEV Mobile proposes to copy the image file into the project directory. Accept by clicking the "Copy the file into the suggested directory" button.

RkJQdWJsaXNoZXIy NDQ0OA==